without any additional info about the system and further description of the problem it is impossible to tell you anything...
this can have many reasons
hardware failure (power supply, mainboard,...)
overheating
malware
corrupted windows
...
Have you already opened the case to check if maybe the cpu fan has stopped running or is covered with dust?
If you're not able to give this information, take the system to a pc-service or buy a new one...