Do you have a multimeter and some spare romex? I would check for continuity of each wire from the switch to the receptacle. I say spare romex because it’s likely too far of a stretch for a multimeter’s probe wires. If I was in your shoes I would want to confirm continuity of the wiring. Any loss of continuity would indicate a bigger problem relating to a break in wiring. If they all have continuity it could just be an improper connection at the switch.
i found an open neutral in Norm's house - that was fun.
-------
without causing a panic - this is how electrical fires start....
If you heard a pop, a wire has probably melted at a tight turn when it arced to the box.
Take the fan down, and look for a black streak in the box from the welding session.
Test power to ground, and power to neutral. If both fail move on to a continuity test.
You don't need real wire for the continuity test - speaker wire will work.
More than likely your neutral and ground are tied together, so just confirm continuity on one -
it is all about the black wire. Do it with the power off!
No continuity, means it is open somewhere along the path........
Probably just fish a new wire.
If you have continuity and no power, it is probably a mis-wire of the switch. they can be temperamental.
Get a fan with a remote.
----
i just did a ceiling fan yesterday. When I pulled the old one down, it was connected to the ceiling with a 1.5" screw into a stud, and a toggle bolt.
No electrical box, the wire just poked through the ceiling. Same house as the buried electric in the kitchen.

