Login to iCloud https://icloud.com Go to Text Messages, check t make sure your texts are backed up, and you see what you want to recover there.
On your phone got to Settings > iCloud
Turn off the messages backup, then click Keep on my phone.
Turn the messaged sync back on. Select Merge.
This should restore your backed up messages.