The symptoms you describe can be caused by practically anything; bad RAM, CPU, PSU, MB, wiring, etc.
What is the make and model of the system?
Did you do anything to the system prior to it's malfunction?
D3, D4 points to bad memory. But that is by no means certain, the motherboard interface with the RAM could be bad.