It may happen that a computer that has served you well for several years suddenly stops turning on. But this does not mean at all that the old computer will have to be thrown away, although there is such a possibility.
One of the most common reasons a computer won't turn on is a failed power supply. At the same time, the computer may not respond at all to pressing the power button, or it may even work after being turned on for a while, and then turn off completely. This is most often the case.
At first, there seems to be nothing strange, and then the computer starts turning off after several hours of work, and soon this time begins to decrease and as a result, the computer completely refuses to start. In most cases, capacitors are to blame.
Capacitors are the most vulnerable elements of computer boards. Over time, they swell and become unusable. It is easy to determine the failed part by the swollen capacitors.
To detect a breakdown, completely turn off the computer's power, then remove the cover of the system unit, and on the rear side of it, unscrew the bolts on which the power supply is attached (if necessary, disconnect all connectors).
Look closely at the capacitors through the grilles on the sides of the power supply. If there are swollen ones, then the problem is in the power supply.
If you do not find any obvious signs, try connecting another power supply unit (ATTENTION! The power supply unit must not be lower than the power indicated on yours!). Try turning on your computer. If everything works, feel free to buy a new power supply.
If manipulations with the power supply did not work, inspect the motherboard for all the same swollen capacitors. In case it is the motherboard that breaks down, you will most likely have to buy a new computer if yours is already old enough.
The fact is that component manufacturers are constantly changing connectors on their products, and, for example, you can hardly connect your old processor to a new motherboard. It's the same with RAM, video card, etc.
If there are no obvious signs of a breakdown, take the system unit for repair, where you will be diagnosed with it.