When I need to clean up some nasty electrical connectors I hold it in a rag and spray battery terminal cleaner into the connector and let it soak for a minute. Then I wash it out with non chlorinated brake cleaner and blow it dry with the air hose.
The brass parts come out nice, clean and shiny. The battery terminal cleaner neutralizes any acid and corrosion. Then I fill the female connector with dielectric grease and plug back together. We've used this trick on at least 20 bike resurrections with great success.