Newcastle warmed up for Sunday’s Carabao Cup final by beating West Ham 1-0 at the London Stadium to climb into the Premier League’s top six and put life back into their Champions League challenge.