Hi,
Had the exact same thing happen on my 330D just after i bought it. I think i had knocked the rear cluster thing that held the bulbs in putting something in the boot (bulb was also fine). Messed around with that a bit and its been fine ever since.
Probably just a bad connection somewhere as mentioned.
Ta
Matt