* Open the Settings app and input your name.
* Choose iCloud and choose iCloud Backup.
* Go to Setting and choose General and select Reset.
* Select "Erase all Content and Settings." and choose Erase Now.
* After your iPhone has been reset to factory conditions.
* Select "Restore from iCloud Backup."
* Sign in to open into iCloud backups and choose the text messages you want to recover.