How do I know my servo motors are connected to right ports?

Make sure the physical connection and the simulator assignment match.

Refer to the image below to see if your physical servos whether it is the Positional Servo or the Continuous Servos are connected to the right ports on the breakout board. Secondly, they should be correctly assigned in Makecode. You can easily check your simulators in Makecode to identify that L, M and R symbols on the breakout board align with leftServo -> L , middleServo -> M and rightServo -> R.

servos-cont-pos-assignThe above example is using the two continuous servos for movement. They are assigned to Left and Right ports on the board physically and in the simulator. The positional servo is attached to the Middle port.