I'd say (s) goes to the switch for the wipers......

On the tailghts the housing must be grounded the 3rd wire inside should go to the housing inside for ground......

MM64