I think you have correctly indentified the main problem, which is that you are lonely, and you have yet to develop relationships in your new town. An additional issue is that you are doubting yourself. Continued negative self-talk is leading to diminished self-confidence. If it continues, you risk being trapped in a cycle of self-doubt and a lack of self-confidence.
How can you prevent this? Try to override the negative self-talk and force yourself to begin interacting with people. You have the ability to connect with others. The proof is that you have a long history of successful relationships with many people.
It is important to be as logical as possible. You are new in town. You left your hometown, where you lived for 21 years. You have been in your new town for a very short time. It takes time to meet new people and to develop relationships. It would be incorrect to conclude that just because you haven’t yet connected with others, you won’t ever do so. I believe it is simply a matter of time. Remind yourself of that when you are evaluating your current situation.
If you continue to have difficulty, you may want to see a therapist for a few sessions. Connecting with a therapist would help you to see your experience from the correct perspective. In addition, he or she can help you to maintain objectivity in this situation. The therapist may also have ideas for how you can meet new friends. It takes time to adjust to a new living situation and the support of a therapist might help to make this easier. I hope this helps. Please take care.