Bairstow's well-crafted, unbeaten 103 and his 128-run stand with Ben Stokes rescued England after they slipped to 36-4.