Question: how to transfer apps and data to another iphone?
Answer: Turn on your new iPhone and follow the setup instructions.
On the Apps & Data screen, tap "Restore from iCloud Backup."
When your iPhone asks you to sign into iCloud, use the same Apple ID that you used on your previous iPhone.