Question: what does it mean when you scratch your head?
Answer: Express puzzlement or perplexity, think hard, as in They scratched their heads over this vexing question, but no one knew the answer. Although literally scratching one's head may simply betoken the fact that it itches, it also may indicate mental mystification or bewilderment.