Ellen has the answer. Take notes, write it down, and practice.
Making a notebook with descriptions of everything you have been taught is a tremendous help when first learning, and it is a good reference for later. This should be done immediately after the class. In the process of writing everything down you will be forced to review in you head everything you were just taught, and describe those actions. You will find yourself getting up and doing the step again and then writing it up. The writing process will firmly implant this information in your memory. You still need to practice it to firmly implant that information in your muscle memory. You will also discover that you will not be able to write it down if you don't understand it, or if you don't remember it from class. A portable tape recorder taken to class is a good way to quickly make notes to yourself. Use that when you do your write-up.
In this notebook you should have the name for the step. Break it up, maybe one line for each 3 steps. Include the timing as the first item, maybe QQS, or 12&3 or whatever is appropriate - then describe the step in as much information as you need. If you are a beginner you will be describing individual steps, where they go, what the timing is, what your partner is doing, for a man, how to do the lead, and for the lady how to recognize the lead. As you progress you won't need as much detail on the basics. You can describe a step as consisting of something you already know plus only any additional information that is new. Of course to describe a new step in terms of something you already know, you have to have a name for that step, so pay attention to the names of steps.
When you are doing this you will also discover errors in what you thought was correct. In other words if the timing didn't come out right on paper, then you didn't remember it correctly. So go thru it again and fix the error.
If you do this it will be a very big help in remembering and understanding how all this works.