Electrical Questions? Ask an Electrician Online.
Hi, I'm Mike and I'll be assisting you. Please stand by while I review your question.
Please explain exactly what you were doing, why and what you did after the spark.
Do you have a 2 wire voltage tester? We need to test the wires to determine what is needed.
Test each wire to ground.
One probe on the ground wire and then touch the bare end of the other wires one at a time.
OK, go to the panel, remove the cover and test each breaker to ground.
That's a doorbell transformer.
Go back to the fixture opening and give me the count and colors of the wires in the box.
This what you have to do.
Let me know how it goes. When that is done, you'll need to go back and change connections at the ceiling box to provide for switch control.
Unusual to have only lights only on a circuit. Troubleshooting is a step by step process. A bad or lost connection can be on a working outlet and the loss is the connection leaving to the next outlet which is now dead. I suggest following my previous instruction to eliminate the usual failure first.
One more thing. Do you have any GFCI outlets that may have tripped. Check bathrooms.
I have to put you on hold for a while. Doctors appointment. I post back when done.