Run around like a headless chicken
Dash around without purpose; this expression will be as old as the practice of slaughtering chickens that often run, jerk and move after decapitation. Its figurative use in English dates from at least The Middle Ages and most probably from before that in different languages and cultures.