Connect your phone to your computer with a cable, then back up your pictures, music, and videos.
In the App list, tap Settings Settings icon > About.
Tap Reset your phone.
When the warning message appears, make sure you're really ready, then tap Yes. Your phone will restore itself...