One of the functions in the church that Paul wrote about was the five-fold ministry and the intention was about equipping the saints.
In Ephesians 4:11, 12 Apostle Paul wrote, Eph 4:11, Now these are the gifts Christ gave to the church: the apostles, the prophets, the evangelists, and the pastors and teachers. Eph 4:12, Their responsibility is to equip God’s people to do His work and build up the church, the body of Christ. These five gifts he mentioned here were not to do all the ministering, but to equip the saints to minister to the rest of the saints, and to others outside the church, so that the body of Christ was built up.
Reference: Growing Deep and Strong | Equipping The Saints