Connect your iOS device to your computer and launch iTunes. You'll notice your iOS device connected in the top right hand corner (if you're running the latest version of iTunes).
Click on it to pull up the device menu. Click on restore iPhone.