You can back up your iPhone's data and make sure it's safe and secure with iCloud, or by using a connected Mac or PC.
If you need to reset your iPhone to factory settings to resolve an issue, you can back it up to iCloud first and then restore ...