Question: how to backup and transfer text messages to a new iphone?
Answer: Turn on your new iPhone.
Go through the setup process. ... 
When asked, tap Restore from iCloud Backup and Next. ... 
Your new phone will start to download everything from your back-up, including all your messages.