Green’s Dictionary of Slang

loaf (of bread) n.

[rhy. sl.; note twopenny n.1 suggests earlier usage]

[1910s+] a head, esp. brains, intelligence.

In phrases

use one’s loaf (v.)

[1930s+] to think, to act intelligently, to work things out; often as imper. use your loaf!