Looking for this 3 pin connecter

Looking for the cable half of this connection. I need the part that plugs into the box (on the left)

This is the part I’m looking for

What is the pin spacing of the connector and how many wires, 2 or 3?

The header looks like it is from the Duraclik series. You would need to check the dimensions like Rhonda said but maybe look at housing WM11229-ND This would still need contacts depending on the wire guage.

Here is the datasheet for your reference.
987650-8742.PDF (molex.com)