An unbeaten century from Matt Prior ensured England saved the final Test and drew the series against New Zealand.