swap the bulb with the one on the other side - does the problem stay on the same side?
If so probably a bad connection spray area with switch cleaner and rub with wet and dry sandpaper
If the problem still remains might be corrosion in the housing or earth point where the cable screws to the car body - prob former if no other electricals are affected