GO:0004795:   threonine synthase activity
Catalysis of the reaction: O-phospho-L-homoserine + H2O = L-threonine + phosphate.