Steps to restore messages from iCloud
Step 1. Log in your iCloud account
After installing iPhone Data Recovery program, launch it on the computer. On the top of the main window, switch to the mode "Recover from iCloud Backup File". Then input your Apple ID and password to sign in your iCloud account.
Step 2. Download the iCloud backup file
When you log in, you can see all the iCloud backup files displayed on the frame. Choose the one for your iPhone to download. To save your time, you can check "messages" and "messages attachments" to download.
Step 3. Preview and recover iCloud messages
Once the download completes, you can preview all your iCloud text messages in detail. Select the messages you desire and click the button "Recover" to save them to your computer. If you want to extract the text messages to your iPhone, you can also connect your iPhone to the computer via USB cable and choose "Recover to Device". In that way, you can view text messages on your iPhone conveniently.