If you have backup for your iPhone, you can restore your iPhone with backup file. If you don't have backup file, you need to use iPhone Data Recovery program. It can scan your iPhone deeply and find the deleted text messages for you. You can preview them and recover them from your iPhone to computer. You can learn how to recover deleted text messages on iPhone. You can also recover deleted photos, videos, contacts, call history, notes, reminders, calendars, voice memos, voicemail, safari bookmarks and other deleted data from your iPhone to computer.