There can be many reasons for them to get stuck.
- No path
- Partly in the ground so collision locked.
- Fell out of some update list so getting ignored
- Out of movement points, or gas or energy
- Waiting to fire or for someone else to take a turn
- etc, etc, etc,