Well, first of all, this isn’t happening to you because you’ve done something wrong (that’s what Job’s friends erroneously try to tell him). Secondly, if you are being discplined by God for something, be happy about it! (Proverbs 3)
But more to your point, are you an active member of your church community? It may take awhile (I would give it three months at least) for people to notice you if you’re not the most outgoing person, but eventually you’re bound to bump into someone who’s seen you before and who will have a conversation about you.
Making new friends is never easy. That’s why I’d suggest pursuing your hobbies. Figure out what you like, and then look for groups that are centered around that. If you like reading the bible, for example, see if there’s a bible study group at your church, and if not, then in your area. Or if you like a sport, sign up for a team, or take a class of some kind - it could be anything. You’re bound to meet some people that way.