They are both two forms of BE. There are a few differences, but here are some big ones.
Was / Were = simple past time: Use it to talk about a time that is finished and over. The time is specific and identified. Use it with words like "yesterday" "last year" "in 2004" etc.
"Last night I was at my friend's house."
"She was in Chile when the earthquiake hit."
"She was pregnant last year."
has/have been = present perfect: Use it with words like "since" "for" "recently" and "lately" and when that situation is still true. Also, if you tell the number of times the "condition" existed in the past. This time is not definite, completed, or named.
"She's been pregnant for four months."
"She has been pregnant three times in the last four years."
"Tom wasn't a good student at the beginning of the semester, but he has been very hardworking lately."
"I have been sick three times in my life."
"She has been late a lot recently."
There are some other differences, but I think these are very useful ones.