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 ...
You'll have to go into your settings to trust non-App Store apps on an iPhone. Here's how to make your iPhone trust these apps so you can use them.
Unboxing a new iPhone shouldn't make you anxious about whether your information will safely transfer to the new phone. These are the ways to do it easily and safely.