How was a Protestant priest selected to run a local church?

He was chosen by the king.
He was appointed by the parish council.
He was elected by the congregation.
He was selected by the pope.