|The obvious answer is to replace the faulty fan. If the main cooling fan is not working of course it will heat up. |
This is most likely the fan on the CPU heat-sink. Assuming it is a desktop, replacing the heat sink fan is a fairly simple operation. If it is a laptop, it is a bit more difficult.
Knowing the model number of the computer in question would help.