Pick the diagram that is most like the scenario you are in and see if you can wire up your fan. Pull a bit of the insulation off the ends with a wire stripper if necessary.

How To Buy And Use A Non Contact Ac Voltage Detector Tester
How to test ceiling fan wires. Push the reversing switch to one side and see if the fan works. Test the second set of wires. You need to expose about ½ inch of bare wire on the ends of the two sticking out. Restore the power to the fixture and. Take your multimeter and place the negative black multimeter probe on the brown wire. Connect your white wires together and secure with wire nut.
Connect the green wire to your household ground wire copperbare wire. Yes then you want to check the reversing switch on the side of the housing. This might seem intimidating but it does not have to be. Be sure to check local building codes for proper installation and permits. With these diagrams below it will take the guess work out. Take a closer look at a ceiling fan wiring diagram.
Loosen the housing and lower the fan get some help. You should put the red probe on the white wire. Unhook the wires and put the wire nuts back on them. Turn the power back off at the panel and tag it. So i went to hd and got a replacement switch that looked identical same voltsamps rating and 45 wires same as the old one. You will need to take the fan completely down to see if you have power in the box.
Tuck the wires back into the box. I have a hunter ceiling fan 3 speed with lights all on one switch and the pull switch for the fan broke. The brown wire is the start wire and the black wire is the common wire. Make sure you turn the fan off before you check this. If the switch is part way in between the forward or reverse positions the fan wont work. Connect the red wire in the ceiling to the black wire in the light kit and the black wire in the ceiling to the black.