I'm almost certain that it's corroded connections. I'd take a wire brush to the taillight connections and clean them thoroughly. That's the only thing that would explain why the other lights are working, but not the tail light itself. Either that or you purchased the wrong type of bulb.