Connect your iOS device to your computer and open iTunes, while your device is connected, force restart it: When you see the option to Restore or Update, choose Restore and wait for the process to finish. Now you can remove lock password and can unlock your iPhone.