Crude-oil futures gain on Thursday, with traders focused on prospects for supply and demand, while hot weather forecasts pull natural-gas prices sharply higher.