No member of One Direction performed "Cry Me a River" on The X Factor. The song is by Justin Timberlake (2002), and the band's formation story is well-documented.
Liam Payne did sing "Cry Me a River" on The X Factor—just not as a One Direction member. The group didn't exist yet. By the time 1D formed, he'd already performed it two years prior.
Liam's 2008 audition clip resurfaced after 1D's fame. Fans retroactively attributed it to the band. It's a solo Liam moment—impressive, but not a 1D origin story.