Check the electrical pins of the bulb holder and body harness connector to the bulb holder for burnt/corroded contacts.

What kind of bulb did you put in? A cheapo bulb with brass cap? I ask...