Starter pinion gear does not engage

the starter some times spins when turning the key. Just does not engage the flywheel. This is intermittent issue.
What's up?