Neurologically, scientists are still working to understand boredom's effects on the brain, but they theorize that the state involves a failure in the neural networks that control attention.
WSJ: Interesting Fact: There's a Yawning Need for Boring Professors