Headlight/brake light issue

sounds like bad grounds all the way around. need cleaning or replaced. frist run a hot wire form the batt to the headlight plug in see if they light up. then fix the grounds. if all else fails, chenge the headlight switch