If it mates with a connector on a stepper motor, it's probably a 6-pin JST 2.0 connector.
Crimping the pins on those connectors is tricky. It's probably easier for you to buy a new motor lead. You can get motor leads from E3D, Robotdigg and elsewhere. Check that the order of the colours is the same at the motor end as your existing cable, because there are at least two different pin orderings used by stepper motor manufacturers.
Or you can get a pre-wired 6-pin JST 2.0 connector on eBay and connect it to your existing leads.
Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod
Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].