Estar refers to the state, denotes something temporary and Ser refers to something permanent, for example:
Eu estou feliz = In this moment I'm happy.
Eu sou feliz = I am a happy person every time.
In the past:
Eu estava feliz = In that moment of the past I was happy.
Eu fui feliz = In the past I was happy.