Question: how to transfer data from old iphone to new iphone through 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.
Open iTunes or Finder on your computer and select your device.