You have a burned out tail lamp socket assembly plug. The problem occurs in the plug that connects the tail lamp to the rear wiring harness. Could be left or right, but it usually happens in right side first. Remove the tail lamp and unplug it and visually inspect the plug and socket pins. When it's bad, you'll see it clearly.