Gathering together with other Christians in worship is an act of encouragement to them.
And that’s before you even do anything else.
From Jared Wilson:
AS AN ENCOURAGEMENT TO OTHERS
Your church attendance is an encouragement to others. This is especially true in smaller to medium-sized congregations, but it’s even true in very large local churches where you may be tempted to think your absence would go unnoticed. Presence is impressive. When the saints gather, there is something spiritually helpful about the physical proximity of the brethren and even about the relative fullness of the sanctuary.
Even if you make the mistake of not talking to anyone, even if you don’t think you’re getting much out of the church or they’re not getting much out of you, your actual presence communicates to those around you: “This is worth it. You, brothers and sisters, are worth it.” Having pastored a church, I can tell you that while I didn’t get to speak to every attendee every Sunday, I was encouraged when I saw people loyally showing up week after week. I’m willing to bet your presence encourages your pastors as well.
This is to say nothing of the immense help and encouragement you can be when you actually reach out with kind words or a helping hand to the brethren you see week after week.