The hosts, who were in early trouble at 25 for three after being put into bat, rode on the 256-run fourth-wicket stand between Yuvraj (150) and former captain Dhoni (134).
Seam bowler Chris Woakes claimed four wickets in the must-win game for the Eoin Morgan-led England team, which is trailing the three-match series 1-0.