This article explains how to restore your iPhone from a backup using iCloud or iTunes. Information applies to iPhones running iOS 11 and later.
How to Restore Your iPhone from iCloud Backup in 2 Ways (2024)
If your iPhone automatically backs up to iCloud when connected to power and Wi-Fi, you can easily restore the data wirelessly:
To ensure you have a recent backup:
Tap Settings and tap your name.