To teach (somebody) by giving a speech on a given topic.
Example: "The professor lectured to two classes this morning."
To preach, to berate, to scold.
Example: "Emily's father lectured her about the importance of being home before midnight."