The phase transition of higher dimensional Charged black holes