past perfect
I had forgotten to study for the test, so I failed misserably.
used for:
Events that took place longer ago than other events in the story.
past perfect continuous
I had been studying for hours, but I still failed the test.
used for:
Events that were in progress in the past. Focus on how long something took.