There are various types of pronouns in English grammar. I and me are two examples of pronouns, and they belong to the personal pronoun category. However, they are two differently functioning pronouns and need to be used under certain contexts.
When to use I or me with another person?
When there is a need to represent ourselves with another person, we always have two personal pronoun options, one is the I, and the other is me. I is basically a subjective pronoun, and me is an objective pronoun. That means when we refer to ourselves as a subject of the sentence, we use I. But when we are talking from an objective stance, we can put me in place of I along with the other person.
There are other personal pronouns other than I and me. Some of them are mine, his, hers, yours, they, we, etc.
When to use I
I is used with another person in a sentence when we are referring to subjects. By that, we mean that I is a subjective pronoun and it shows that I is doing something.
George and I will go to the party.
When to use me
Me, on the other hand, is an objective pronoun and is used to represent the person that the action of a verb is being done to. That means me receives the action. Therefore, me is not used as a subject with another person at the beginning of a sentence.
They will watch me and John play football today.