If you cannot navigate the phone settings to perform a reset, CMD can force the phone into Recovery Mode.
Run the command: fastboot erase userdata (Note: Some Nokia bootloaders are locked and may block this command. If it fails, you may need to boot into Recovery from Fastboot first using fastboot reboot recovery ) . Dedicated Nokia Reset Tools