Quantum quench dynamics and entanglement