I had the same thing happen with an old iPod touch or iPhone a couple of years ago that I had bought second hand and which had worked as it should until one day the screen went black. I let it sit for a day or two but when it still wouldn’t respond I got angry at it and threw it in the freezer in order to make it turn off sooner. This might not be a great idea, but the next day I took it out and let it sit for a little while and then put it on charging and the screen came back on when it turned on and it worked as it should after that.