Alpha and beta particles are deflected in an electric or a magnetic field but gamma rays are not deflected in such a field because
Alpha and beta particles are charged but gamma radiations are uncharged
Alpha and beta particles are deflected by an electric or a magnetic field because these particles are positively respectively and negatively charged. Whereas γ-rays are nothing but energy radiations, hence, they do not get deflected by an electric and a magnetic field.