just to add, since both signals work when plugged into the green,( ground) 4 way, i'd suspect that circuit is ok.
make sure the tail/brake light circuits are delivering current, and that the light bulb contacts are not smashed flat,
burned or corroded, and that the ground wire attachment to the socket is not broken off, if there is one. bulb socket integrity will have negative effects on operation too. corrosion/rust/looseness of fit, bent/damaged.
Hard to tell what your situation, maybe non factory light? just my .02