Pain has the following meanings:-
1. To suffer or to cause distress: “It gives me pain to see the poor patients being denied medical treatment in the civil hospitals.”
2. A bodily sensation characterized by discomfort and suffering: “The patient was suffering from acute pain when brought to the hospital.”
3. An individual who annoys or is troublesome to others: “My subordinate is a pain when he pokes his nose into my private life.”
Pane on the other hand, means a sheet of glass framed for a window or a door: “The cricket ball hit the window and broke its pane.”