Transferring data from a broken iPhone to your new iPhone
The old iPhone fell: shattered screen, touch not responding, or it won't turn on any more. The new one is in its box. How do you move photos, chats and contacts from one to the other? It depends on what still works.

Case 1: there's a recent iCloud backup
From another Apple device or the iCloud website, check the date of the last backup. If it's recent: 1. switch on the new iPhone; 2. during setup choose Restore from iCloud Backup; 3. sign in with the same Apple ID and choose the most recent backup.
Photos in iCloud Photos then download by themselves.
Case 2: the old iPhone is on but the screen doesn't work
- If you've connected it to a trusted computer before, connect it there: Finder (Mac) or Apple Devices/iTunes (Windows) may allow a backup without touching the screen. Then restore the new iPhone from that backup.
- If it was never trusted, it needs unlocking: the computer will ask you to tap “Trust” and enter the passcode on the phone.
In the lab a service display is connected, the phone is unlocked with your passcode and the backup is made. Don't try random passcodes: after too many errors the iPhone locks.
Case 3: the old iPhone won't turn on
Then there's no way to transfer anything directly. If there's no iCloud backup or it's old, the data is only on the phone. It's recovered by repairing the board just enough to restart it, and the passcode will be needed. See iPhone data recovery.
The WhatsApp backup is separate: in WhatsApp on the new iPhone, when verifying your number, check whether it offers to restore from iCloud. See transferring WhatsApp to a new phone.
What NOT to do
- Don't factory-reset the old iPhone “to get it working again”.
- Don't set up the new iPhone as new if you hope to restore a backup: you'll only be able to do it by erasing and starting over.
- Don't have the screen repaired by someone who doesn't guarantee not to touch the board, if the data has no backup.
Related guides: phone with a broken or black screen, iPhone stuck on the Apple logo.

