If you accidentally deleted your iPhone iPad iPod data,you can use
iPhone iPad Recovery to get them back.
It is an easy-to-use tool that can help you easily recover data, such as photos , videos, contacts, SMS, call logs, memos and more! It offers you two kinds of recovery mode: to recover data directly from the iOS device and to retrieve previous data by extracting it from iTunes backup!
Guide:how to recover lost messages from iphone
Way 1: Recover from iPhone Directly
Step 1. Connect Your iPhone to Computer

Step 2. Scan Your iPhone for Lost Text Messages
Step 3. Recover the Wanted Text Messages
2: Recover Lost iPhone Text Messages by Extracting iTunes Backup SMS
Step1. Scan the iTunes Backup for Your iPhone
Step2. Preview and Start to Recover Text Messages Selectively
Know more:
How to recover lost messages from iphone
How to extract iphone messages from backup