Pull-Out Test
WARNING: This page is about a different car, the 2004 Mazda 3. However, it is still accessible from the selected car via links, so may be relevant.
Verify that the drive pinion is pulled out with battery positive voltage connected to terminal (S) and the started body grounded. See Fig 1. If not pulled out, repair or replace the starter.