A pronoun can be the subject of a verb or the object and indirect object of a verb. Example:
Subject: He brought his lunch today. (the pronoun he is the subject of the verb brought)
Object: Mom brought me today. (the pronoun me is the object of the verb brought)
Indirect object: He brought her some flowers. (the pronoun her is the indirect object of the verb brought)