This situation requires that you have backed up your device with iTunes or iCloud before.
A. You need to choose the "Recover from iTunes Backup File" or "Recover from iCloud Backup File", and scan the backup file.
B. The program will display your files in the backup, and you can choose the files you need to recover.