Factory Reset is Done through Settings > About > Reset your phone (8 & 8.1) or Settings > System > About > Reset your phone (W10M).
You should see the spinning gears and your phone will reflash the last OS version held in recovery. You do lose data, but get your phone back. Sign into your Microsoft Account and restore your backup during the set up.
If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See this link for instructions on how to join Windows Central.