You can try to recover your text messages and files using recovery software. I suggest you to look at Disk drill app here https://www.cleverfiles.com/mac-data-recovery.html. I also use it when I need to retrieve deleted data on my android. It has free options. Hope it will help