I have not worked on any O gauge American Flyer but if they are like the S gauge versions I would say to check the brush and spring tension at the armature area. My S gauge engine would not move because the brushes were slightly out of contact with the armature, so you need good tension on the brushes.
Lee Fritz