Past perfect indicates past of the simple past.When we use simple past we assume two actions and both are completed.Former action is past perfect while the later action is simple past.

  • When I arrived at the station the train had already left
  • He had already worked in TCS before he joined this company.