Accidental deletion of SMS from your iPhone is a fairly common problem. No matter whether it happens by pressing the Delete button on the wrong SMS or a failed software update that has deleted important SMS from your iPhone. Read on to learn how to recover deleted messages on iPhone and iPad using these initial easy steps. The following tutorial works with Apple devices running iOS version 9 or later and mainly consists of three methods.
Before we start, I want you to know the difference between recovering a primary SMS came via non-iOS devices and the iMessages. Since SMS and iMessages are marked differently in your messaging app with different colors. General SMS messages appear in green as these are messages that get communicated via cell towers (similar to telephone calls) and are charged by your network provider.
The iMessages, on the other hand, are colored blue. They are part of Apple’s instant messaging service that uses WiFi or your 3G/4G data connection to exchange messages exclusively between iOS devices. iMessages get sent much faster than SMS, but this service uses your mobile data unless you have a WiFi connection. Although they both get deleted in the same way, the recovery part of it also remains the same.
Also Read

Important Note:
Method 1: How to recover deleted text messages on your iOS devices from the iTunes Backup
Recovering deleted text messages from a backup via iTunes requires users to connect it through the computer. While in iTunes, open the “Summary” tab for your iPhone. Select Restore Backup, and iTunes will reinstall the most recent backup on your iPhone. That restores any data that got deleted after this backup was made, such as text messages, photos, and apps.