Trans going back into car questions

Dang, contacts rusty where it plugs in the harness?
Where does it lead to after it goes there? Maybe that’s the problem