It is inevitable that any electronic devices will eventually freak out. If you iPhone ever does, and I’m not saying it will, you may not be able to get it to respond to normal inputs. Pressing this combination of buttons will let you reset the iPhone.
Rebooting or performing a hard reset is a task that is frequently recommended when your iPhone is in a hung or unresponsive state. This process just shuts down and restarts the device without the loss of any of your personal information, applications, games or music.
To reset the iPhone, press and hold both the sleep/wake button (on top of the iPhone) and the Home button (centered below the screen) for a few seconds. Depending on your device, the amount of time may vary.
When you see the Apple logo, you can let go and the iPhone will start restart.