Motor control with joystck problem

Where online? What motor? What motor driver?

You keep calculating MotorSpeed1 but it's never used for anything. So either you haven't copied the sketch correctly or it wasn't a good one to copy. Certainly not if you think it's going to control the speed of the motor.

Also it may be worth putting some Serial.prints in to see what values you are actually getting from your joystick.

Steve