If you want to recover a text message, tap on the thread or message so that it's selected, hit Recover on the bottom right, and then tap Recover Message in the pop-up that appears. You can also ...
If you're trying to recover texts or iMessages on iPhone, use iOS 16, Finder, iTunes, or iCloud to retrieve them.
If you need to reset your iPhone to factory settings to resolve an issue, you can back it up to iCloud first and then restore ...