get / have ants in one’s pants
1.
to become/be nervous and agitated — проявлять нервное возбуждение; быть взбудораженным; проявлять нервозность; (сидеть) как на иголках
see also
[butterflies in one's stomach]
[be on tenterhooks]
2.
to be so excited or full of energy that you are unable to sit or stand still (used humorously) — [шило в одном месте]
------------
Refers to the agitation caused by ants crawling into one’s pants.