Likely a thermistor connected to them and embedded in the windings?
Ditto, though it could be a thermal switch – have you tried measuring the resistance between the two wires ? Also, look inside the connecting box lid – frequently find a connecting diagram there.
If you are running the motor from an inverter, does it have a motor overheat input ? Some have a thermistor input – if yours turns out to be a thermistor, wire it to the drive as described in the drive manual so the drive can monitor the winding temperature.
Nigel B