Why does my PC not turn on regularly?

I recently bought a used Asus motherboard from one of my friends and installed it into my CPU. After i completed this when i pressed the power button it successfully worked, however when i tried switching the computer on after another hour it did not turn on.
This happens on a very regular basis, sometimes it works where as at other times it does not turn on.
Thank you for your help.
