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 it to keep your data.
Your Apple Watch will automatically backup its data whenever it's connected to a paired iPhone, and you can use these backups ...