headlights should have a continuous feed from the main splice. that the brake lights work says it is farther down stream like closer to the head light switch OR at the dimmer switch
the head light switch if turned all the way counters clockwise will click and cause the wire that gets grounded...