A "pun" is a kind of joke. It's a joke that's based on two words that sound the same but have different meanings. For example, here's a pun from the website SillyPuns.com:
I used to be a doctor, but then I lost patients.
The word "patients" sounds like "patience". "Losing patience" means to get annoyed and not being able to wait. "Losing patients" means that the people the doctor was treating died.
Sometimes you say something that might have two meanings on accident. In the example above, the speaker said "I'm on a roll" to mean that he was doing well. But "rolling" could also refer to rolling a ball. He didn't mean to make a joke, so he said "No pun intended."