These are good solutions for this issue:
If you have already backed up your iPhone with iTunes, you can get the deleted text messages back by the following steps using iTunes:
Click the File menu and select Devices > Restore from Back up.
Or
Open the iOS device's Summary tab. There are two ways...