Check you ground wire inside the taillight mount on the box, there is a ground for the side lights and one for the tailight . Since you have side light power is getting through, so I think the ground is bad or broken, once you remiove the tailght you'll see the ground wires screwed into the sheet metal.