You can restore content, settings, and apps from a backup to a new or newly erased iPhone.
Important: To restore your iPhone, you must have a backup to restore from. See Restore your iPhone, iPad, or iPod touch from a backup and If you can’t update or restore your iPhone, iPad, or iPod touch.