In Russian, as well as in many other languages, noun (mostly ending of noun) is changed according to its role in the sentence. It is called case system. There are six most common cases in Russian.
English also has remnants of case system, for example personal pronouns have 3 cases in English: I-me-my, he-him-his etc.
Looks like you need to learn some theory to start.