There are simple steps to do this task:
- Go to the "Settings" of your phone and then to "General"
- In General tab you will find an option named as "Factory Reset or Reset"
- Click "Erase all settings and contents"
- Enter your password, if you have set one, and confirm..
The END.