This is mainly hardware related. Try:
1. remove your ram modules and put them back on 1 at the time.
2. remove your cd cable fro the motherboard
3. check that your fans are working properly.
If none of these work its likely to be:
1. Motherboard failure
2. CPU failure
Hope it helps