This match was not important for New Zealand. Because New Zealand team had won the first two matches of the series. New Zealand had already won the series. So I think New Zealand players did not give full effort in this match.
However, Sri Lankan batsmen played very well in this match. If Sri Lankan batsmen could have batted decently in the last two matches, then maybe Sri Lanka would not have lost the series. In the first match, Sri Lanka gave a target of only 179 runs. And in the second innings, Sri Lanka had collected only 142 runs.
That is fair way to look at match. Because New Zealand had already won the series they probably did not try their hardest. But Sri Lanka batsmen played well in this match which makes you think about what could have happened if they had played like that in other matches. First match was especially missed chance for Sri Lanka because they did not score enough runs. If they had batted more carefully in that match result of series might have been different. By the way this match was amazing and I congratulate Srilanka on their win.
I do not know why sides who loses the last match when the series is already won say, that this last match wasn't important when they are being paid for every match to perform to their full potential and win for their country.
I think Sri Lanka is focusing only on test matches, because they always made a good performance in test matches since the previous year started, beaten to Pakistan and New Zealand very well that was a really unexpected results but now they are just trying to maintain good results in all formats but somehow cannot achieve it.
However, already Sri Lanka lost the series but they won the last match. At least they have something to cheer about at the end of the series but that changes nothing about the Sri Lanka's bad performance in the whole series.