Rangana Herath claimed his 11th five-wicket haul in Tests as Sri Lanka bowled out New Zealand for 221 on the opening day of the series in Galle.