Probably, you might have already solved it.
If power supply box’s fan is not rotating, then there is a serious problem. Either power supply cable has the problem like in most of the cases, or the fan is jammed, maybe because of dust. In Kathmandu, we have both because of dust, and because of power fluctuations.
See the computer repair center, asap.