The port is working. I disconnected all outputs and connected the x axis step signal. The polarity was wrong. After fixing that I connected the step signal and repeated the same thing for all axis. Now the machine is working properly. Thanks to everyone for the help.