The answer to 'how to fix ceiling fan' is to first turn off the power to the ceiling fan at the circuit breaker or wall switch. Then, inspect the fan blades, motor, and wiring for any visible damage or issues. If the fan is not spinning or making unusual noises, the problem may be with the motor, wiring, or a loose connection. You can try tightening any loose screws or bolts, and if that doesn't work, you may need to replace the motor or other faulty components.
It's important to follow safety precautions when working with electrical fixtures. Shut off the power, use a voltage tester to ensure the circuit is de-energized, and wear protective gloves and eyewear. If you're not comfortable troubleshooting or repairing the ceiling fan yourself, it's best to call a licensed electrician who can safely diagnose and fix the issue.