|Failing power supplies are common and can cause your symptoms.|
Check your PS.
See response 4 in this:
Usually you can replace the PS with a standard sized standard ATX one.
Standard (PS/2) power supply size - 86mm high, 150mm wide, 140mm deep, or 3 3/8" h x 5 7/8" w x 5 1/2" d , or very close to that, though the depth can be more or less for some PSs.
Don't buy an el-cheapo PS.
See response 3 in this:
Noises are almost always caused by a fan's bearings failing, or by a fan rubbing on something.
Unplug the case/power supply.
Power off your monitor.
Open up the case by removing the left panel as seen when you're looking at the front of the case.
Examine the cpu fan and heatsink.
If the cpu fan/heatsink has mung (dust, lint, etc.) on it, clean it off, but DO NOT use a vaccuum cleaner to do that (they produce a tremendous amount of static electricity when running, and anything connected to them can discharge that to your components) - use canned air, or an air nozzle if you have access to an air compressor, or an artist's brush that can be used in small spaces, etc. It may be difficult to clean the top of the heatsink under the cpu fan - the most likely place to have mung on it - and the bottom side of the cpu fan blades unless you remove the fan. If you have a case fan, clean that too if it needs it.
With the cover still off, restore the AC power, start the computer and make sure the cpu fan spins - if it doesn't spin, if you're sure the power supply is working okay, don't use the computer until you have replaced it.
If it spins too slowly, and/or if it makes rattling or screeching noises, most likely to be noticed when the computer has cooled to room temp, has not been used for a while, and then is started up, the cpu fan's bearings are failing - replace it as soon as you can.
If the cpu fan is filthy, it's likely so is the power supply fan(s), the interior of the power supply, and case fans if you have any.