You can transfer data from an old iPhone to a new one by backing up your old iPhone to iCloud or iTunes and restoring the backup to your new iPhone.