by Hard Reset
Before you buy a new cell phone or new tablet, please try the following procedure to repair your device. First charge your battery, backup your important data if possible and in most cases take out SIM and SD card before factory reset. It is impossible to recover your data after doing a hard reset, so online backup is always important. For all of your data, a backup should be done on an external device, hard drive, raid system or media. With or without insurance, if your cell phone lost, damaged or stolen at least your invaluable data is backed up in a safe place. If you are about to sell your phone and you want to wipe your personal data, or if your phone affected with virus you have to do a hard reset. In some cases, you can delete the forgotten password or lock pattern from your device as well. All information is for devices with stock based ROMs. If you are using rooted device, always back up your EFS folder first, containing your IMEI info, etc.!
Motorola MOTO X hard reset
If your phone stops responding to touches and key presses, try a forced reboot - press and hold both the Power and Volume Down keys until your phone goes
dark and restarts. If necessary, hold the Power key to turn your phone back on.
or factory reset your Moto X from menu
To reset your phone to factory settings and erase all the data on your phone, touch Apps > Settings > Backup & reset > Factory data reset > Reset Phone.
Warning: All downloaded apps and user data on your phone will be deleted. Data on the cloud will not be deleted.
Forgotten pattern: If you enter the wrong unlock Pattern five times, your device shows a Forgot pattern? option that lets you enter your Google account email and password to
unlock your device
Motorola MOTO X soft reset
If your phone frozen or slow down just take out battery and reinsert it, then power on your phone.