Check you sensors with one of the sensor apps in the Play Store. This is one of the symtpoms which a bunch of us have related to sensor failure. Is auto-rotate working? Are your other gestures working (such as when in camera mode - shake to selfie)? Is the panorama mode on your camera working? If they are, that would likely rule out sensor failure.