A way of saying your thinking is scrambled and foggy, that you're overwhelmed, or that your mind is otherwise muddled, along with other similar mental states.
I walked into the wrong room twice this morning, so don't ask me to plan anything, my head's a shed today.