First, you can connect your iPhone to your computer and opne you iTunes, you can find 'Restore from backup'. If it doesn't work, you can check your iCloud if there has your data.
If neither of them don't work. You can follow the steps：
Step 1: Download iMyfone Data Recovery for iPhone , install and run. Connect your iPhone to your computer.
Step 2: Select the type of files you want to recover.
Step 3: Wait for the scanning.
Step 4: Scanning completed. Preview the files you want to recover and restore them to your computer!