And he gave the apostles, the prophets, the evangelists, the shepherds and teachers, to equip the saints for the work of ministry, for building up the body of Christ, -Eph. 4:11-12
According to the Bible pastors (among the other office mentioned) are gifts to the church. But I think that most pastors are probably more like underpants and tube socks to a 7 year old boy rather than a shiny new bicycle. They are necessary but not all that shiny.