explain how the iron atom can form both an iron 2+ ion and an iron 3+ ion ?

explain how the iron atom can form both an iron 2+ ion and an iron 3+ ion ?