Check for a good ground (secured tight to bumper with good metal to metal contact (not paint to paint or metal to paint).
It could also be a bulb filament that's busted, but tapping brings it back into contact and lights up. Not likely, but it does happen.