On a Samsung, if you keep trying a pattern unlock, it offers you to enter a backup pin # if you made one, or a Username and password. Which is a misnomer as it just wants your full Gmail address (___@gmail.com) and account log in password. You cannot enter too many times.
If you can't find your Gmail log in, try as Rukbat suggested.