The pc OP, is it a ‘tower’ design? (Sits in the floor , is taller than wide) or a desktop, (sits on a desk , is wider than tall )?
If it’s a tower, take the side off as @whiteroom suggests.
You’ll likely see a couple of fans.
One will be sitting on the motherboard, this cools the cpu.
There could be one or more fans around the case itself, these move air around as a general cooling measure.
You may even see one or two smaller fans embedded on the graphics card.
The overheating problem , if it is one, will be with the cpu fan.
If it’s safe to do so for you, run the pc with the side cover off. You can see if the cpu fan is spinning that way.
If it’s not spinning at all, check it’s connected to the motherboard - there will be a wire out of one of the corners of the fan heading off to a connector on the motherboard.
With the power cable disconnected, this is also the chance to hoover inside the case.
Has anyone been inside the pc recently, possibly disconnected cables by accident?