Common ground externally excited field shunt motor.. Speed changes as the ballance between the feild and armature changes - the stronger the field, the slower the engine.
To test the motor check continuity between f1 and f2, and between a1 and a2 with the motor assembled. If you have armature continuity and not field continuity, you are likely to burn out the armature quite quickly as the armature will be pretty close to a short. An open field is pretty well indicative of a burned out field.
If the armature is open, turn the motor and see if it is intermittent. If so, the armature is burned out. If not, there is a bad connection from either A1 or A2 and the brush assigned to it.
Really a pretty simple thing to test - not necessarilly easy to fix..
If you have continuity on both, connect a1 to f1 and a2 to f2, and connect jumper cables from 12 volt battery to the a1f1 and a2f2 connections and the motor should run.. Connect a1f2 and a2f1 and the motor should reverse.
If that works, your "drive" or controller is damaged.