How do I get my first motorcyle?

I am moving for college and need a way to get around town so I thought itd be a good excuse to get a motorcycle. When I was younger I used to ride my uncles/cousins motorcycles but havent really got the chance to ride for the past few years and never owned one of my own. My budget is $4000

So i just want to know some basic info like

What is the safest place to buy a bike from?

How can I make sure when I buy a bike it wont just break down a week later?

What kind of models should I consider buying?

What other fees come with buying a bike?

If I do buy a bike how will I get it back to my house, some bikes ive been looking at are like 100+ miles away and i dont think ill comfortable enough to make that drive back.