It sounds — like you say — that you are feeling homesick, and therefore it is affecting your ability to connect and bond with other people, because you've essentially got a lot going on in your head and with how you're feeling. That was a long sentence.
I don't know what to suggest other than this is a normal feeling, and it should pass within a few weeks. In the meantime, I would allow yourself to feel these feelings — and start to introduce yourself to thinking about the positives of having moved to university. This potentially might open yourself up to new experiences, and feeling better within yourself.
Start small, and go from there.
I hope this helps!