Basically, you pay a deposit, and a finance company pays the balance. You then drive the car away. The money the finance company pay is considered a personal loan to you, and you pay it back with interest over an agreed period of time (usually 3 yrs). If you pay off the loan before the contract ends, you will usually pay a little more than you actually owe, because they would be losing interest on the amount outstanding. Finance companies usually put a pretty high interest rate on this kind of financing, and depending on your age may want a quarantor. (They accept responsibility for payment if you default.)
You can usually get a much better rate of interest by taking out a bank or building society loan and buying the car outright. You also lose out in the sense that the dealer will usually give a better deal if you pay cash.