When the church is in conflict, it is because people in the congregation have been distracted from the main thing: Jesus Christ and his mission for the church. They may have entrenched themselves in a specific means to an end, a personal preference, or they may even have imported secular matters into the life of the church. If there is conflict, at least portions of the congregation are not accepting pastoral or board leadership.
It falls to the role of the pastor to bring the congregation back to the main thing: Jesus Christ and his mission for the church. In this post from January 6, 2021, I suggest some ways you can restore peace to your church.