If you've synced your device with iTunes, you can restore your device.
Connect your device to the computer you synced with.
Open iTunes. If asked for a passcode, try another computer you've synced with, or use recovery mode.
Wait for iTunes to sync your device and make a backup. If it doesn't, learn what to do.
Once the sync and backup have finished,click Restore [your device].