Phase Transitions, Metastable States, and Random Fields