You accelerometer may not be configured correctly. You may be able to reset it from the settings, if so, go to Settings (or
) and recalibrate the accelerometer.
Your Screen rotation option may be deactivated. Check in Settings (or
) >
Accessibility to see if Auto-rotate screen is checked.