If an electric dipole is placed in a nonuniform electric field, then the positive and the negative charges of the dipole will experience a net force. And as one end of the dipole is experiencing a force in one direction and the other end in the opposite direction, so the dipole will have a net torque also.