Trying to help grand-daughter

Don't see the motor on that diagram. :face_with_raised_eyebrow:

Remember that you need a transistor - preferably a logic-level FET - to switch the motor, it cannot be directly connected to the Arduino.