If the fan is not working, you'll need to determine the cause. The blower motor itself may have failed, the control for the blower may have failed, or there could be a wiring issue. Also check for any blown fuses related to the circuit.
RepairPal Certified shops can diagnose and repair your 2005 BMW X5. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.