Your computer probably has a power button on the back of it. It is possible that you may have pressed this by accident, which would make your laptop turn off automatically and not display anything on the screen until you open up your laptop again.