Much more information is needed here. How old is your computer? What version of windows do you have? What make and model is it?
When you turn your computer back on does it tell you windows recovered from an error? If so click more information and copy and paste that into a reply please that would make this easier.