Pain is a homophone of pane. A pane is a single sheet of glass, often used to make windows. Pain is a type of suffering caused by injury. Though he crashed through the windows, he felt "no pane' which sounds like "no pain". The joke is on the word "pane" which describes window glass, but sounds like "pain". 
He crashed through several windows , but felt no pane .