Crewe ended a six-game winless run as they made the most of Jamie Sterry’s early red card to beat Hartlepool 2-0.