Question: how to recover deleted text messages on someone else's iphone?
Answer: Go to Settings > General. ...  Tap Erase All Content and Settings. Turn on your iPhone and begin setting it up as if it were new. When you arrive at the window titled Apps and Data, select Restore from iCloud Backup.