Hi the problem your are experiencing can be very problematic to pin point and solve, for instance it could be many factors e.g. bad ram, bad psu etc
However a more simple solution maybe to check all power connections to the motherboard, the 24 pin, the 8 pin etc and make sure the connections...