What is wrong with this simple code?

This motor int global variable never used it.