Welcome, note the fan is switched on the earth side so provided there's a supply and assuming your car has knobs not electronic control then it's either the wiring, control knob , earth contact or less likely the resistor pack, but it's worth looking at, at the same time why not replace the cabin filter which is also in that area? When was it last replaced?