Struggling Manchester City won for the first time in five league games to climb to a provisional fifth in the Premier League.