To recover deleted iMessages:
Download, install and install Disk Drill.
Connect your iPhone to your computer and select it as the disk to be scanned.
Click Recover to search for deleted data.
Select the messages to be recovered and click Recover again.