Black is normally for the fan and red is normally for the light. Does your fan have a white wire? What kind of fan is it?
yes, there is a whitewire coming from the fan, but it is connected aready to the three other white wires controling other switches which are also in the junction box.
Normally you connect the black fan wire to the black box wire and the blue fan wire to the red box wire. What do the fan instructions say the red fan wire is for?