Try this : unplug the microswitch and connect the pins of the connector on the circuit board with a strap. Then try to move the bed to the right.
I’ve had the same issue with the Z-axis and there was a bent connector in the Z-stop plug (no contact).
The movements toward the micro-switch are only allowed if it’s closed (normal state) so if the micro-switch is un plugged or open the movement is impossible.
It turned out that the problem could be fixed by adjusting (slightly bending) the socket pins on the controller board so the connector could get contact.