First of all, get an iphone data recovery tool like this one: Aiseesoft FoneLab, which allows you to directly scan your iPhone and retrieve your contacts, SMS, photos, videos, call history, notes, etc. in 3 steps. It doesn’t matter how damaged your iphone is, as long as it can enter DFU mode. You can also retrieve past data through your iTunes backup.
Before anything, start the program on your computer. After this connect your iPhone to the computer. Once the iPhone is detected, you will see the following interface.
FoneLab provides you three recovery modes for you to retrieve lost or deleted files on your iPhone/iPad/iPod touch: Recover from iOS device directly; Recover from iTunes backup file; Recover from iCloud backup file.
You can actually start previewing your data during scanning. All files will be categorized such as Camera Roll, Photo Stream, Contacts, Messages, Call History, and more. You can retrieve all of them or select them by clicking on the button “Recover” if so needed.
Note: The data found here includes the ones you have on your iPhone now and those that you have erased. You can scroll the button on the red area in the interface shown above so that only erased items are shown.