Try hard reset by pressing *#7370# and providing security code (default is 12345 but if u changed it, u should provide the new code). Hard resetting deletes all your data so create a back up first.
If the first step doesnt solve the issue u should take your handset to nearest nokia care centre. It may be a defective one.