2 answers
If you forgot your phone's unlock pattern, the best way is to use the Google account linked to the device - go to the error screen, tap "Forgot pattern" and follow the verification flow. If that doesn't work or you don't remember the account password, you'll need to do a factory reset, which wipes everything on the phone but unlocks it; on most Android devices you can do it through recovery mode (Power + Volume Up). The downside is you'll lose your data if you didn't have a backup, but it's basically the only way out when nothing else works.
I've had this problem before and found out that the Google account usually is indeed the fastest way, but heads up: if the phone is offline or has no data connection, this method won't work right away. In that case it gets trickier - most brands require you to do a factory reset, which wipes everything. Best thing is really to keep Google sync active from the start and make sure you can access the associated account whenever you need it.
Your answer
Log into answer.