Grammar (דקדוק או חוקי לשון) helps us understand parts of speech (חלקי דיבור).

It also helps us make correct sentences.