Before wiping your iOS device clean, it’s a good idea to back it up one last time. You may have already did this, so you could restore your data to your new device. If not, here’s how.
To backup your device to iCloud, simply tap “Settings” -> “iCloud” -> “Storage & Backup,” and then tap “Backup Now.” Your device will be backed up via Wi-Fi to Apple’s iCloud.
To backup your device via iTunes, you’ll need to connect your iOS device to your computer via its Lightning charge/sync cable and then load iTunes.
Click the name of your device that appears in the top frame of the iTunes app window, and then click the “Back Up Now” button in the “Backups” section in the iTunes window. iTunes will then begin to backup your device.