We use ERA when we want to talk about someone's characteristic which she doesn't have anymore. Here an example:
" A menina era tímida, mas agora ela é extrovertida"
We use ESTAVA or TAVA(informal) when we want to talk about the way or state the person was, the location she was or something she was doing. Example:
"Eu estava doente na semana passada"
"Eu estava no shopping"
"Eu estava estudando"