Hi, sorry for the delay, even insomniacs sleep sometimes!
Yes checking all the leads was exactly what I meant and the SATA cable coming unplugged unexpectedly during use could have been what freaked out your motherboard.
It will help us troubleshoot the blue screen errors if you can write down the error and post the exact codes here. To give you time to write the error down you can make the PC stay on the blue screen until you press the on/off button.
To do that right click on "My Computer", then click "Properties", click on the "Advanced" tab, then click on "Startup and Recovery"
Click on the tick by "Automatically Restart" so that the tick disappears. This will make the PC wait for you to restart it if it blue screens again
These instructions are for Windows versions before 8. 8 will be slightly different so let me know if you're running 8 or 8.1