Did you install any fan control software previously?
If not, I'd reset the system management controller (SMC) to its defaults, that usually sorts out mad fans. It's quick and easy, you'll find instructions
here, click your way through depending on the type of Mac you've got.
Cheers
Steffen.