The Spanish pluperfect tense describes a past action that happened before another past action. In other words, it is used to say what someone or something had done. For example: ...
The preterite tense is used if the past action had a definite beginning and definite end and is often used with phrases that give a specific time frame, eg: ...