Approximate controllability and exact controllability on trajectories for some dissipative evolution equations