Writing Question!!!

<p>When would you use the word "was" and when would you use "had been" in sentences? is there any difference between the two?</p>