You may have your screen orientation disabled. Double Tap the home button. A little bar with your recently visited apps should be in the bar. Slide the bar to the right and you should see a orientation locker on the far left of the bar at the bottom, click it. That should fix your problems. If not the tilt sensor within the device could be malfunction or broken. To get that fixed you would have to contact apple.