Thank you for the replay. This is the schematic of the my circuit.
I have brought 6 motors. But 3 of them works perfectly. But the rest moves a continuous rotation. I don't know why the same series servomotors behaves differently for the same code.