There are often many ways to restore lost iPhone text messages, pictures, videos and files back.
In your case, you can try the below two ways to take chances:
1). Rescue lost data from phone data backups.
Have you saved all your lost contacts, images, videos and other stuffs on the iPhone memory card earlier?
If you do have prepared phone card data backups, no matter how you lose these contacts, you often can restore them all back with the help of phone memory card data
recovery software.
2).Directly restore lost phone data from this phone memory card.
Connect this phone to computer and apply phone memory card data recovery software to rescue your needed texts back successfully.
Here are some articles that can help you out:
how to recover deleted photos on iPhonehow to recover deleted text messages on iPhone 5From now on, always prepare phone card data backups well on several drives or locations.