as i start gaming or doing anything substantial it dies.
Overheating or signs of the PSU overloading.
open it up and clean out all the dust and fluff especially the fluff that gets trapped between heatsink and fan on the cpu.
What size PSU and how old?
may also be worth using memtest to check the RAM.