Had is the past tense of the verb "To have". It can also be used for past perfect.e.g: (Past simple) He had two dogs when he was a child. (past perfect) He had been a teacher for two years when the strike started
Was is the past tense of the verb "To be" e.g; I was there when the riot began. I was a teacher back then...