Both are words used to refer to yourself in a sentence. For the most part, the word I is used as the subject of a sentence and the word me is used as the object for a sentence.
In most circumstances this will mean that I comes before the verb and me comes after the verb. Here are some examples:
I went to the store.
You’re going to have to convince me.
Often the confusion comes in when you are talking about multiple people in the same sentence, as well as yourself. An easy way to solve this riddle is to take all the other names out of the sentence, read it again and see if it still makes sense. For example:
Jamie and I will go to the store.
(This is correct because if you take Jame out the sentence still makes sense.) I will go to the store.