If you have delete text messages but want them back , you can restore them from iCloud
if you have synced on iCloud for backup before.
Of course you can also use a third-party program called FoneLab for iOS
to help you .
You can finish it in a couple of clicks.