Is my motor damaged?

You can find out if your motor is damaged by
1)connect the cables to the motor
2)upload the code
3)if motor doesn't do anything at all, it does not make any sound or jittering. Absolutely nothing

then you have shown that it is broken