Jurgen Klopp’s side secured a much-needed win to go into the World Cup break on a positive note.