Wiper Motor erratic

My Dart Custom wipers would sometimes not have the "park" function operational. I found that the wires going into the motor had a bad connection, if I moved them slightly they would park. As for the switch, I don't know if it is grounded through the stock metal dash or not, but it's possible.