You changed something a the library, but you don't show what you have changed.
The pin numbers of the AFMotor library are hardcoded in the library, if you miss one of them, the library no longer works.
You changed something a the library, but you don't show what you have changed.
The pin numbers of the AFMotor library are hardcoded in the library, if you miss one of them, the library no longer works.