Joe Root scored an England record-equalling 33rd Test hundred as the hosts established a strong position against Sri Lanka on the first day of the second Test at Lord's on Thursday.