I suggest you try cleaning the bulb socket contacts. Remove the bulb and use a cotton swab with some alcohol on it or WD-40 it works good for cleaning also. Clean the center conductor and the base ground. If that doesn't help then look for a faulty wire connection to the socket. If the socket depends on a chassis ground connection for the return side then clean that area of the chassis where the socket attaches to.