The grounding wires will be either green or bare copper from the ceiling box."green and bare copper together"
red is a 120v hot power lead wire.if fan/ light "red and blue together"
black is a second hot power lead wire 120 volts .wired to a second wall switch.if you only have one switch on the wall wire nut and electrical tape it off. it will not help you controll a fan /light independently.
white is a neutral." white and white together "
in fan/ light installs the black wire is used if you have a second switch in the wall that will turn the fan on separate of the light switch from the fan wire .most of the time will be BLUE for the light, you will run the red to the blue wire in a single wall switch assembly.and run red to blue and black to blackif you have a second wall switch. white to white.bare copper /green together.
the black wire to the fan motor only if you have a 2nd wall switch . if you have a second wall switch look to see if it's a black wire and black wire together. Turn off the power from the fuse box and remove the cover it should be black in and black out wires thats means 120volts in and out .the switch just stops the power.