Liverpool brought their four-match losing run to a spectacular end as they came from behind to rout Eintracht Frankfurt 5-1.