Electrical woes

Where brake or turn didn't work the park would and viseversa.
The only reason I can think of for the entire rear lamp to quit is lost bulb socket ground to the body.