Use this pdf to match your connector. You'll find that one in the 'Female 2P Waterproof Type' section (about page 93). Match up the indexing protrusions and other features. When you think you've found it, verify by image searching the part number and comparing pics. If you're unsure, post a pic looking into the connector.
As for the replacement procedure, I typically just bust open the old connector with pliers to free the wires. They're usually pretty brittle, hence being broken in the first place. I hate losing little pieces of debris in my bay, so I usually pull the connector through a hole in a sheet or similar, then drape it over the work area in order to catch any pieces.
The freed wires and pins then just click in the new connector. Be sure to note orientation.