What is the difference between lexical and grammatical words?

Lexical words are nouns, verbs, adjectives, adverbs.

Grammatical words are determiners, pronouns, auxiliaries and modals, prepositions, conjunctions.

That's all I remember.