LeBron James has a 28-point triple-double and Anthony Davis scores 27 in return from injuries as Lakers beat the Knicks to end two-game losing streak.