That's why a factory reset is crucial before you sell, recycle, or donate your Android phone or tablet. It can also be a last-ditch attempt at troubleshooting persistent issues with your device.
To unlock an Android phone without a password, your best bet is to factory reset your phone. We can assume you can't access the Settings, so you will need to use secondary methods to accomplish this.