The Past Perfect Simple is used:
before a specific point of time in the past.
"My mom had done all the housewok by midnight"
another action in the past. The second is in Past S.
"The movie has already started when we got"
to the theater."