I checked the wiring in the ceiling can light. I moved the neutral wires and saw a spark so I twisted it and now the lights work again. But now the three way switches aren't working right. They are more like a two way switch. Do you have any ideas of what I might have done? I did try new switches thinking maybe that was why my lights stopped working in the first place.
I'm not familiar with what moving wires and twisting "it" (what?) could mean. But I read there was a spark which should put you on alert. Some connection is no longer fixed. Sparks can cause fire! You don't know what's going on there and obviously you don't know how to handle this situation.
Turn off the fuse or breaker or whatever this is called and find a professional to see this ASAP. An electrical expert looking at that is cheaper than a burnt down house.