Il ne sait où donner de la tête = He does not know which way to turn.
[Donner here has the meaning of heurter, frapper de la tête.]
Donner de la tête contre le mur = To hit one’s head against a stone wall.
La tête me tourne = I feel giddy; my head swims.
Il a mauvaise tête = He is a wrong-headed fellow.
Il fait à sa tête = He will have his own way.
Cet homme a mauvaise tête et bon cœur = That man is quick-tempered, but kind-hearted.
Vous lui avez tenu tête = You did not give in to him.
Cet homme a de la tête = That man has his head screwed on the right way.