One of my cofounders has a PhD in neuroscience. Whenever I am stuck on a technical issue, he encourages me to get up and exercise for a while. His reasoning is that vigorous activity increases bloodflow to the brain, which in turn leads to creative problem solving.
Anecdotally, this has served me well so far. Our entire architecture came to me during the middle of a hellish session on the treadmill.