You need to perform a recovery of the iOS. To do this, connect the cable to computer, open iTunes and power off the device. Press and keep the Home button pressed and attach the cable. Continue to hold the button pressed until iTunes informs you that the attached device is in recovery mode. Click OK to restore it and the phone will be restored to a working state where password lock does not exist or is not enabled.