The sentence with correct pronoun-antecedent agreement is:
Mrs. Smith was excited to teach her class.
In this sentence, the pronoun "her" correctly refers to the antecedent "Mrs. Smith." The other sentences contain pronoun-antecedent agreement errors.