im a 3rd year uni student who has struggled through similar feelings and just want to let you know you are not alone!
Uni can be a daunting place, and it can feel like everyone is doing better than you. I’m here to tell you that’s not true, everyone struggles with motivation at some point, just some worse than others.
Like Alexlisa said, university counseling services can be really useful, and are often free! They can refer you to psychologists, and also help you apply for special consideration. I have also found getting in contact with disability support services helpful, and putting a learning plan in place in case things do get worse and you need help getting through study.
uni is one of the things in life that you can control, so make the most out of the services offered and use them to your advantage.
I have found joining clubs and societies helpful for making friends and building confidence. Especially in first year, everyone is new and scared, so use that to make a lecture buddy and keep each other accountable!
None of this is easy, but please try to remember you are not alone (even if it’s just helpful strangers on the internet)!
I hope this helps!