Ergodic dynamics and thermalization in an isolated quantum system