In Latin, we use case to show what a noun is doing in a sentence.
Though English used to have a full case system, it has evolved away in all but some pronouns. Case is the reason why we have different words for "I" and "me", and for "he" and "him" and, though increasingly few people understand how to use them, for "who" and "whom". In many English pronouns, we use one form for subjects and another for objects, and we call these cases subjective and objective.
English pronouns can be a natural way to check for whether something is a subject or object. If you replace a singular noun with "he" or a plural noun with "they" (the subjective forms of each) and it sounds right, it's probably a subject. If you replace it with "him" or "them" instead, it's probably an object.
Exempli gratia (for the sake of example):
The man walked to the store. > He walked to the store. Good! It's a subject.
I saw the man. > I saw he. Not so good! Let's try the other one...
I saw the man. > I saw him. Bingo! It's an object.
I sent a letter to the man. > I sent a letter to he. Nope, not this time!
I sent a letter to the man. > I sent a letter to him. There we go! This one is an object too.
What did we just see? Generally speaking, in English, a subject goes before a verb. English uses objects for two reasons: either a word is the direct object, meaning it comes after the verb, or it is the object of a preposition, meaning it comes after a preposition (to, in, from, by, with, for, etc.). English considers both direct objects and the objects of prepositions to be kinds of objects, so the same pronoun case is used for both functions.
That's case in a nutshell: when a noun or pronoun uses a different form (pronunciation and spelling) for one function than for another. English also has a third case: the possessive (my, your, his, her, its, our, their) which we use, naturally, to show possession.
Latin has all of these, but we use different names. For the function of the subjective, we use the nominative. For the function of the objective, we use the accusative. For the function of the possessive, we use the genitive. What's more, we use cases for not only pronouns but almost all nouns and adjectives as well.
What's EVEN more is that we also have a couple other cases.
The dative case is used to show who is indirectly affected by some action, and we usually translate it by adding the word "to" or "for".
Exempli gratia:
I gave a gift to a friend. Instead of using a preposition, the word for "friend" in Latin (amicus) would become dative (amico).
The ablative does, well, a lot of different things. It is strongly associated with the prepositions "from", "by", and "with" in English. Sometimes, when translating, you can add one of those without needing to have a preposition in Latin, but sometimes Latin does use prepositions for those words. Each actual preposition that exists in Latin needs an object that is either in the ablative or in the accusative.
Exempli gratia:
I broke a stone with a hammer. The Latin word for "hammer" (malleus) would become ablative (malleo), and we would not use a preposition in Latin.
I went to the store with a friend. Here, we would use a preposition for "with" (cum). The word for "friend" (amicus) would become ablative as well (cum amico).