Sometimes, the teaching style of the instructor and textbook are not a good match to the student's learning style. Going to other texts, or studying with others or a tutor, can give a different perspective on the subject, and help your learning.
You may just have to do the work over and over until you are comfortable with the subject. In addition to your assigned work, do the problems in the book that you are not assigned (these are often on the tests!).