How to connect wiring for ceiling fan?
Did you already remove the other fan?

If there is another fan already there then just replace it using the same wiring configuration if it worked the way you wanted it to.

The new fan may have a light kit (you didn't mention that) and it sounds like you only have one switch so you will have to decide if you want the wall switch to turn on the fan or the light. The other one you will have to operate with the pull chain.

Happy New Year!