If the starter turns but the pinion doesn't, the drive is shot. There's an over-running clutch in it that's slipping. From your pix, the ring gear didn't look that bad, seen lots worse that still worked,but then the part that didn't show could be worse.