If you lost data like contacts, messages, photos and more on iPhone, don't worry because all data could be found back as long as you want.
There are three ways you can use to retrieve lost data on iPhone. But I think it's better to restore data from iCloud backup files.How to Restore iPhone from iCloud
To solve it, you can follow the steps here:
Step 1: Log in iCloud account
When you start to restore your iPhone, please make sure you have backup files on iCloud. Ok, now install and launch the program first, then you will see three options on the program. Choose the third on Recover from iCloud Backup File. Then you will be asked to enter your iCloud account with your Apple ID and password.
Step 2: Download the backup file on computer
After you have signed in iCloud, you will see more than one backups there maybe. But you only have to choose the one you want to restore then click Download to get it saved on PC. All the downloading will take some time, please wait patiently. After downloading the backup, you can open it by pressing the same button again.
Step 3: Preview and recover the backups on computer after scanning
When the backup file is downloaded, the system will start to scan the data. When it stop to scan, all data will be appear on iCloud so you can preview the data carefully. When you are previewing, you can mark down some of the data or all of the data in order to recover them later. If you have make sure youve got all you want, then click Recover to restore iPhone data from iCloud.