Question: how to transfer data from old iphone to new iphone with computer?
Answer: Turn on your new device. ... 
Follow the steps until you see the Apps & Data screen, then tap Restore from Mac or PC.
Connect your new device to the computer that you used to back up your previous device.