What you have told about "BlueScreen" error!
Some times it happens for installation of new softwares or hardwares.
If you have done that then I'll suggest you to remove it, [To do it run your pc in safe mode].
Then if problem persists open your cpu and remove the ram, clean it gently and reinstall it!