Flickering or pulstating Headlights

Cleaned out all the connections in the headlight plug, installed new switch, and grounded switch housing tab to body, nothing changed. I just can't figure it out. Thanks