Sao Paulo beat Cruzeiro in the Campeonato Brasileiro to move within four points of the league leaders.