Did the wires pull out of the contacts or did the contact come out of the connector body with the wire still attached.
If the wire pulled out of the crimp on the contact, you need to remove the contact and reinsert the wire and recriminations. May require opening up the crimp tabs a bit and then recrimp carefully so as not to break or damage the tabs, you may also want to consider soldering those connections.
If the wire and contact pulled from the connector body, check for a small wing or tab the should be sticking up proud of the rest of the contact, if that is bent down or over then it will not lock inside the body correctly. You will need to straighten , if bent over, or bend up high if just bent down and then reinsert. Be sure you put the contact back in the right way around or the lock tab will not find it’s home.
Either repair, once the contact is installed give the wire a good firm tug to be sure it stays put and does not pull back out.