Running around like a headless chicken is used to describe a person who is rushing around and stressing for no real purpose, or without a good reason.
This arises from the situation when a chicken has been beheaded, and still continues to run around image random fashion.