Why did my headlights kill my car?

It looks like thet wroe from the headlight swithc to the main feed might be where to look? or the switch itself...then you have the wire tothe distributor