Question: how to transfer all my data from iphone to itunes?
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.