Magnetic excitations and phase transition of CsFeBr3 in an external magnetic field