After Jordan Lyles (0-1) hit Yorvit Torrealba to load the bases with two outs, Lewis -- batting only because of the National League venue -- looped a single to left for two more runs, breaking the game open.
Lewis (4-3) also turned in a brilliant pitching performance, holding the Astros to one run on four hits over eight innings. He walked only one and struck out six, tossing 77 of 122 pitches for strikes.
The Rangers took the rubber match of their three-game set at Minute Maid Park with the triumph.
Lyles was rocked for six runs on nine hits over five full frames for Houston.
Jed Lowrie cracked a solo homer in the loss.
Duggar sisters unveil Christian dating rules in new book
Beautician charged with giving client fatal silicone butt injection