No way from here to know which wire fed the light or fan, but you have a continuous hot feed into the box that fed the receptacle, light and fan. The third wire, maybe it fed the fan or maybe something something else farther down the line, if the latter that needs to be tied in 100 percent to the hot feed. All whites still tied together, blacks to the dimmer from the light and hot. All grounds tied together set with a screw to the metal box. Securing the ground to the box is not needed if the box is plastic.
Before I got too wordy, here is a sketch
Still have to learn to format better
The sketch is a little rough, it should get the idea across I hope
I'll split it up below into three pieces: wiring at the switch box, wiring at the above sink light (at least with it being second in line), and wiring at the fan/light unit in the ceiling. The grey wire throughout is the neutral, the yellow boxes are wire nuts (you'll need more than shown to splice the hots and grounds at each box), and the ground wires are not shown just for simplicity. Make sure to run a ground and tie it together with every device and (if used) every metal box.
I'm assuming that nothing has been wired yet and so this is starting from scratch. For the easiest wiring, you would want to run the initial homerun wire from your panel directly to the switch box.
Fan/Light combo unit wiring: - - - >
Above-sink light wiring: - - - - - - - - - >
Wiring in box: - - >
Power comes in at the switch box. Pigtail off of the hot to feed the GFCI and the common on the switch. Pigtail off of the neutral and connect it to the GFCI. Run your second set of wires between the above-sink light and the box and re-identify them on each end so that you can keep up with which wire powers what. Tie the neutrals together and screw in one wire to each terminal on the switch. (This is where you pick which switch controls which device.) Connect your grounds in the box and you're ready to move on to the above-sink box.
Connect whichever hot that you want to use for the above-sink light to the fixture. Pigtail off of the neutral and connect to the fixture. Run your next set of wires between the fan/light unit in the ceiling and your above-sink box. Remember to re-identify the wires so as to stay consistent and make it all easier on yourself. Connect the grounds and move on.
The same process goes for the fan/light unit in the ceiling. Take one hot and connect it to the light. Take the other hot and connect it to the fan. Finally take your neutral and pigtail off of it to feed both the fan and the light. Connect your grounds, mount your fixtures and devices, and add your switch cover. Now you should be clear to power it all back up.
Best Answer
All the ground wires in a box should be connected together, so add a pigtail from each switch to the ground wire nut, and connect them all together. If this gets to be a lot of wires (sounds like 3 cables and 2 switches, so 5 total) it may be easier to use a push-in connector instead:
or for 6 conductors: