Steve Allen's "How to be funny" presents a compelling model of humor as a deliberate misinterpretation of the setup, which is delivered in the punchline. So you have initial context, pivot, and misinterpretation.
The most powerful versions of that reveal universal, strong and suppressed emotions as well as our basic human fallibility.
Urinal cakes?! I'll never fall for that one again...