The connection to the line side of the contactor should be pretty straight forward. If it pulled out of the motor it might be a tad trickier. Basically just 2 in and 2 out. Since it sounds like you are breaking both poles, it might not even matter that much which is which.
I thought that it was going to be straight forward, but it's not, at least not for me. Nothing is marked, everything is a spade connection, and there's multiple options depending on voltage, speed, reversing, etc.
If I had a wiring diagram, no problem. However, without one and having no experience with these, I'm reduced to tracing everything back.
I just posted here, hoping that somebody either had first hand knowledge, or access to a wiring diagram.