Most likely when you tried it originally, the large battery cable terminal was touching the "S" terminal which would easily explain why the starter engaged when connecting the battery.
When testing the starter hanging free, it probably did not work because there was no ground connection to the starter housing.
George
|