Check that you have pushed the connector on to the back of the bulb tightly
That can be the only most likely cause , but first with lights on, tamper with the back of the plug/bulb and if it goes on and off then you know that the connector is loose of the wiring to the connector is faulty
stupid stuart, November 2008