Use the past perfect tense when referring to actions in the past that happened before another event in the past. It is used to talk about the past in the past.
I checked with the bank and they still hadn't received payment.
Subject + had + past participle
I had driven to work before you woke up.
We had gone before she arrived.
She had eaten breakfast.
Had you finished?
Had he taken you home?