Did you already check the general hardware troubleshooting?
- Remember that photos, webpages, and applications will not change viewing-orientation modes when iPhone is lying flat. Hold iPhone vertically to switch between portrait and landscape modes or vice versa.
- Verify that rotation lock is not on.
- To test, open the Calculator application while holding the iPhone vertically (portrait mode). The standard calculator should appear. Then rotate the iPhone to a horizontal position (landscape mode), and the scientific calculator should appear.
Note: Certain apps and features may support only one mode, landscape or portrait. For example, the Videos app plays video in landscape mode, and Reminders uses only portrait mode. Not all applications on iPhone use landscape mode.
copied from Troubleshooting iPhone hardware