The Church exists to serve others (both inside and outside the Church), to mature in the Lord (sanctification, discipleship), and to glorify God. Mark Dever summarises; “The proper ends for a local congregation’s life and actions are the worship of God, the edification of the church, and the evangelization of the world. These three purposes in turn serve the glory of God.”
Watch: https://youtu.be/Rd-6NhYB_bk