MR2 Died on me, and won't start. Help needed ASAP

Does anyone know how to reconnect a loose wire to a wiring harness connector?

Is it even possible, or do I need to buy a new connector and splice the wiring into it?

Edit- Also, the pin is not in the connector.