Try testing the motor in a separate arduino sketch, as I mentioned above. Break it down to the core components.