Meaning: This means that he paid close attention to what the teacher was saying and tried to understand it.
Choice of Words: Listened means that he paid attention to what the teacher was saying. Intently means that he was paying close attention and trying to understand.