Hello and welcome to Android Forums.
You might have to do a reset of the device, assuming that the device wasn't locked when you got it, but somehow had frozen up on you. If this isn't the case - then I won't be able to help you.
Hopefully, someone with the knowledge of your device will chime in to assist you.
Best of luck.