This joke is a pun.  Wool is generally used for knitting.  However, to knit one's brow is to move the eyebrows together in a way that shows that one is thinking about something or is worried or angry.
' ' I ' ve run out of wool , ' ' said Tom , knitting his brow .