If you want to recover lost data then it is only possible if have the backup on iTunes or iCloud.
If you have your backup on iTunes then install iTunes on your machine.
Then connect your device to that machine, give iTunes some time to recognize your phone.
Then click File > Devices > Back up (if you don't see a File menu, hold down the Control and B keys).
Your backup should be ready to use now.
For restoring backup.
Start your device and connect it to your machine where you had taken backup using iTunes earlier. While setting up new iPhone, select 'restore backup' instead of setting up a new device. It will take some time for iTunes to restore data and you are good to go.
For further information: How to extract iPhone photos from iTunes backup