Motor not responding on button click

For testing, try putting delay(500); into loop(). I suspect you are sending too much stuff to the Serial Monitor and the Arduino is choking on it. Be aware that loop() repeats 1000 times per second or more.

...R