Headlight wiring

My blinkers and one headlight arenr working..neither is fuel gauge..how do I change a bad connector to headlight