Hi--Happy fan wiring. Here are your answers: First, I'm assuming the 2 whites are together and the 2 blacks are together coming out of the ceiling. If this so,the three black wires and one blue wire all go together. (You can actually leave the blue out IF the fan has NO lights with it) All three whites go together. The green wire is ground--it should join to a green or bare copper wire coming from the fan and then also be connected a ground screw (usually green) on the ceiling box also.