1: Do they have attacks enabled
if no then: Give them attacks
if yes then: Is it enabled to attack structures?
if no then: enable it
if yes: Check if your towers are invulnerable
Otherwise i cant think of why they would do this. If they are ordered to stop (blocked in other words) they will attack nearby towers