Question: how to transfer all data from old iphone to a new one?
Answer: Step 1: Enable iCloud on your old iPhone. On your old iPhone, open the Settings app and make sure you're signed in with your Apple ID/iCloud account and you're connected to a Wi-Fi network. ... 
Step 2: Enable iCloud on your new iPhone and sync data. ... 
Step 3: Download purchased apps.