Sentence 1: The teacher was teaching the lesson. 
 Sentence 3: Tom was thinking of a question to ask 
 Sentence 4:  He raised his hand 
 Sentence 5:  The teacher called on him 
 Given Sentence 2: All the students were listening.