I have had issues with the motors before as they are cheaply (and badly) manufactured in China and kept packing up
Have replaced resistor packs as well and the is a wiring modification for a new plug so not sure if this may be a cause?
Glad you managed to sort the running issue Andy
As for the sensor I would leave it alone if its running fine and just reconnect the plug.
The other component, I'm not exactly sure what it is but more than likely emissions related.
Again, if the vehicle is running fine then I would be more tempted to leave it be