Learn how to perform a soft and factory reset of the device.
INSTRUCTIONS & INFO
This feature resets all settings to their defaults and erases all data stored on iPhone, including your Contacts, Messages, and Music. iPhone cannot be used while data is being erased. After iPhone reboots, it will display the "Connect to iTunes" screen. If you have backed up your device to iTunes or iCloud, you may be able to restore personal data back to iPhone if desired.
From the home screen, tap Settings.
Tap General.
Scroll to, then tap Reset.
Tap Erase All Content and Settings. Note: You will be prompted to enter the device password if one has been created.
Tap 'Reset all settings' to restore all factory options, but keep your accounts, apps, and media.
To confirm reset, tap Erase iPhone.
After a second prompt, confirm by tapping Erase iPhone.
Press and hold the Power/Lock key and the Home key at the same time for at least ten seconds, until the Apple logo appears. Use this method only if unable to power on or off, or if the device is frozen.