Headlight Switch Ground?

I put in the new switch and the dash lights still don't work. When i wiggled the old switch the lights would blink on and off, so I thought I just needed a new one. Why would the dash lights blink when I wiggled the switch, if it wasn't a faulty switch?