iCloud
If you have your iCloud enabled, the background service of iPhone automatically upload your photos to iCloud server over Wi-Fi every day when they are turned on, locked, and connected to a power source.. You may first check your iCloud backup and try to restore your lost photos from iCloud. Regarding how to restore photos or other information from iCloud, you may check the followinge page from Apple.com
iTunes
If you have ever sync with iTunes on your computer, usually, iTunes automatically create a backup for your iPhone or iPad, you may try to connect your phone to your computer, then restore it from iTunes backup.- Connect your iPhone to the Windows or Mac that you stored your backup on.
- Open iTunes on your computer.
- Go to File > Devices > Restore from Backup.
- Look at the date and size of each backup and choose the one you need.
- Click restore and wait for the process to finish. Your device will restart and then sync with your computer. Please keep your iPhone connected until the the process finishes.
Software
Due to the limitation of iOS (the operation system that iPhone or iPad uses), CardRecovery or other similar data recovery software is unable to recover lost photos from iPhone directly. It is designed to recover lost photos and videos from camera or phone memory card. Since iPhone does not use a memory card, CardRecovery is unable to perform the recovery.