If you enter your pattern too many times incorrectly, you should be prompted to unlock it with the gmail address and password that it's registered to. Be careful, though, some devices will factory reset if you enter a pin or pattern too many times incorrectly. What model do you have?