Many-body localization transition through pairwise correlations