Subject pronouns are used when the pronoun is the subject of the sentence.
Subject pronouns are I, you, he, she, it, we, you, and they.
Ex: She is a nice girl.
Object pronouns are used everywhere else (direct object, indirect object, object of the preposition).
Object pronouns are me, you, him, her, it, us, and them.
Ex: Are you talking to me?