When to use past perfect continuous and simple past tense?
Solution 1:
The first sentence is complete in itself grammatically but needs a context of previous time or circumstance for completeness of meaning. For examples: “When I was promoted, I had been working ...”; “by the time war started, I had been working ...”.
The second statement is complete grammatically and in meaning. It states a fact that is true regardless of when it became true.