The analog pins A2,A1,A3, A5 are for analogRead() only. To use analogWrite(), use Digital pin 3,5,6,9,10,11. Look at your UNO closely, and see the ~ <-- the tiny wave character. That indicate the PWM pins for an analogWrite().
I look at the original program, it look like a BASIC program... Arduino use C++ variant. Don't think BASIC when coding the Arduino, Think C++.
What are you trying to do ? The motors are control by a relay ? A transistor using a PWM wave to control the motors ?
I agree with Grumpy_Mike here about pin 1. For me, I never use pin 0, 1 and 13. Specialy digital pin 0 and pin 1. To me, they call "Someone using the bathroom / toilet" pins

So you don't use the bathroom / toilet when someone is inside.