Not all units are able to shoot. Only units equipped with missile weapons (including war machines) or that can cast certain types of spell (such as magic missiles) can shoot. A unit cannot shoot if:
It charged or marched during the preceding Movement phase.
It is engaged in combat.
It is fleeing.