Manuel Pellegrini said it was important for Manchester City to recover from back-to-back defeats by beating Sunderland.