IŽd check for shorts in the rear lights, or bad connections. Take out the assemlby and clean it, and the plug. Check the wires and bulbs to it. Also check the fuses as I once had something similar that was caused by a corroded fuse connection too.
99 W210 E220 cdi sedan automatic (248.000 km) 210.006