Transition between Collective Behaviors of Micromotors in Response to Different Stimuli