Resetting the iPhone –
Press and hold the PowerON button (wake/sleep) along with the Home button until the iPhone reboots.
Before trying the reset, it is advised that you try to recover by pressing the Home button for 6 secs. (this shuts all running apps and returns the iPhone to the home screen)
See this guide on video!
Image courtesy: oreillynet.com