Kusal Mendis' 121 powered Sri Lanka's 321 before Wellalage and Malinga combined to restrict England to 305