You could use all of these phrases if you felt something was wrong and you wanted to know the cause.
The only difference is the "What happened?" could also be used if something good happened - the other two phrases could not.
"Janet looks much slimmer. What happened? Did she start working out or go on a diet?"