Bathroom light fixture above sink and ceiling fan/light combo wiring issue

Hey so I'm having an issue hooking up a bathroom light fixture above the sink with a bathroom ceiling fan/light combo.

1) for the light fixture above sink: coming out of the wall there appears to be what is a white black ground and another white black ground. I tried doing black to black white to white ground to ground on the fixture but that resulted in a loud pop noise. I then used a voltmeter and found that one of the white black ground combos appears to have current only when the switch is on and the other has current all the time. In what order do I hook these up to get the switch to work? If I hook the light up to the hot all the time wire group the light works fine. But doesn't turn off.

2) similar issue with the light/ ceiling fan combo in the attic, I have 2 wire bundles, one with a black white pink and ground and one with a white black and ground. On the ceiling fan light combo unit I have e two wire pairs, a white and a blue, and a white and a black. I cannot seem to get this to power on at all.

Im thinking if I can even solve one of these two problems it will be much easier as these items are both wired to a triple switch one for fan, one for ceiling light, one for sink light.

Any help is appreciated as I really don't want to pay someone to come hook a few wires together. I'll be happy to take more pictures.
#Electrical #Wiring
Electrical Wiring