Question: how to transfer all messages to 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.