In Middle English, many of these endings were lost, and the role a word played in the sentence was determined by word order, like it is today. The word order in Middle English is pretty similar in most cases to Modern English. (There are differences of course, but in general a Middle English sentence is like a Modern English sentence.)