If you're getting a new iPhone or iPad to replace an older one and you've been using iCloud in order to back up all your data, you can easily bring all your stuff down in just a few steps. Everything from messages, apps, and photos will be exactly as you left them.
How to restore from your iCloud backup on a new iPhone or iPad
After your iPhone or iPad powers on, you'll see a welcome screen, Slide your finger across the bottom where it says slide to set up.
Now choose your language from the choices presented to you.
Select the country or region you are in.
Now choose your wifi network and enter the password for it if there is one. If you don't have access to wifi, you can choose Use Cellular but keep in mind, only some things in your iCloud backup will be restored without wifi. Others won't be triggered until you're on wifi. Or you can choose to restore from an iTunes backup if you have access to one.
Now on the Location Services screen, choose whether you'd like to have location services on by default. Make sure you read the description of what location services are before deciding whether or not you'd like to enable or disable them. Keep in mind that certain apps like Maps need location services to operate properly.
On the next screen, tap on Restore from iCloud backup and enter your credentials when asked.
Now agree to the Terms and Conditions. You will be asked to verify that you agree to them a second time.
If you have iCloud backups, your iPhone will now show them. Tap on the backup name that you'd like to restore from.
That's all there is to it. Your iPhone will begin restoring from your iCloud backup. Keep in mind that the more data you have, the longer it will take. iCloud will start by just restoring your system settings so you can start using your iPhone as soon as possible but apps, photos, videos, and other types of media may take a while to finish coming down from iCloud. Just be patient and if you have to jump off of wifi, no worries, iCloud will pick up right where it left off next time you are connected to wifi.
Once your iCloud settings have been restored, your device may ask you to set up Touch ID and a passcode where supported, since Touch ID specifically is never saved in a backup.