Stepper motor stopped responding when it used to work fine

babycoder:
I have attached the sample codes I have found on the internet and tried to run.

You have not posted a photo of your drawing of all the wiring connections. That is essential to go along with the programs.

...R