When you sell your house where does the money go?

Sorry if this is a dumb question but I’ve never sold a house before but me and my fiance have lived in our house since we were 19 and 21, it’s fully paid off we bought it upfront. We’re 24 and 26 now and are planning to sell our house within the next year. I really need money to buy a new car and was planning on possibly using some of the money from selling the house to buy the car. Is that possible? Where does the money go when you sell your house? Do you get a check and put it in your account or something? Again sorry I have no idea how this works lol