The tail light sockets ground to the housings, if the ground is bad the light won't work. I would use a multimeter and check the ground. If the ground is good, I would check the voltage to the socket and see if that is good. If the voltage isn't good, you'll need to trace it back to the kick panel and see if there is power going to the harness.