Do an iCloud backup from the iPhone 5. Then restore the iPhone X using the same icloud backup.
Make sure you use the same Apple ID/iCloud account.
iCloud: Back up your iOS device to iCloud
Do an iCloud backup from the iPhone 5. Then restore the iPhone X using the same icloud backup.
Make sure you use the same Apple ID/iCloud account.
iCloud: Back up your iOS device to iCloud
Or use iTunes to do the backup. I feel more confident knowing that my data is right here :-)
How can I copy the old data from iPhone 5 to iPhone X