First, it is important that you back up your files to your computer and plug your phone into a power source.
And then, to complete a Factory data reset:
> enter Phone settings
> scroll down and locate Backup & Reset
> select Factory data reset, follow the steps as provided.
Please note that it can take several minutes to complete a Factory reset, do not interrupt the reset once it is in process.