Controllable nonlinear responses in a cavity electromechanical system