refrigerator fan won't stop running

Can anyone help please? My fridgerator fan won’t stop running, tried turning the thermostat switch off and it makes a crackling noise before stopping. The fridge and freezer works fine , but the fan compressor won’t shut off.