My apologies. I connected the motor to E1, and it works correctly with the wiring as I originally connected it.
It seems I have a faulty board.
Any suggestions?
It does sound that your Y motor driver is faulty, and you should ask your supplier to replace the Duet. Assuming it's a genuine Duet, see https://www.duet3d.com/warranty.