By Apple ID you mean iCloud, probably.

Backup and Restore are 2 processes.
- iCloud Backup is done to store your iPhone Data on iCloud
- Restore is done to get the data stored on iCloud on your Device.

Use iCloud Backup and Restore.

How to back up with iCloud
- Connect your device to a Wi-Fi network.
- Go to Settings > [your name], and tap iCloud.
- Tap iCloud Backup.
- Tap Back Up Now. Stay connected to your Wi-Fi network until the process completes.
How to back up your iPhone, iPad, and iPod touch - Apple ...

Restore your device from an iCloud backup
- Turn on your device. ...
- Follow the onscreen setup steps until you reach the Apps & Data screen, then tap Restore from iCloud Backup.
- Sign in to iCloud with your Apple ID.
- Choose a backup.
More items...•
Restore your iPhone, iPad, or iPod touch from a backup ...