The Past Perfect expresses the idea that something occurred before another action in the past. It can also show that something happened before a specific time in the past.
Example
When Sarah arrived at the party, Paul had already gone home
I had not made my homework in my bedroom
Had you worked there before you moved to London?