Every homeowner who works with electricity should own and know hot to use a Multimeter. It measure Volts and Ohms. Do you have one?
There are different kinds of hookups for installing ceiling fans.
Are there separate wall switches for the light and van, or one switch for all?
How many cables come into the box?
Case A: One cable coming into the ceiling box and no wall switch for control
Case B: One cable coming into the box from a wall switch that controls the fan and light.
Case C: One cable coming into the ceiling box and another going to a wall switch for turning the fan/light on and off. One or two switches for fan and light. Are there any red wires in the box?
Case D: Two cables in the box but no separate wall switch. Fan and light controlled only from the string-switch.
Case E: Three cables in the box, one that goes to a wall switch to control the fan and light, and the other that goes to parts unknown.
There are different ways to mess up (and fix) the wiring depending on the configuration of the cables coming into the ceiling box.
What is your configuration? Come back after you have the meter and know the wiring to the box.