If i sell my home and have equity in it who pays me? Does the title co reimburse me at closing or does the lender pay me after the new mortgage is recorded?
In the United States most residential real estate transactions employ a title company to process all the paperwork and transfer all the funds. Some paperwork has to be filed with the local government, but they also have to deal with the banks/mortgage companies on the two ends of the transaction. At closing both parties will sign a ton of paperwork all of which was coordinated by the title company.
As for the funds: The buyer will write a check; the lender will send over the loan commitment papers for the rest of the money.
How much money: that depends on the purchase price, the deposit, the down payment, the taxes and fees, an other closing costs they are responsible for (initial escrow, inspection, title insurance...).
The seller hopefully doesn't have to write a check, but if they underwater they will have to bring funds to closing. From the incoming funds the title company will send money to the old lender, the real estate agents, the local government to record the deed.
The sellers escrow money with the old lender may end up being sent back to the seller or some of the funds could be transferred to the buyer to help cover the portion of the real estate taxes.
From the perspective of the buyer they will only write two checks (one at the start of the process for the deposit, and one on closing day for their portion of the transaction. The seller will hopefully walk away with a check.
Of course determining if they will owe taxes for the transaction depends on a lot more information.
In the US, the title company usually collects all money being paid by parties to the sale (including the buyer, seller, and mortgage companies) and then pays out money where its due to the respective parties (the seller, and possibly mortgage companies, housing inspectors, etc.) If you have equity, meaning that you sold your house for a price greater than what you owed on your mortgage, you'll typically get them money from the title company, but they are really passing through money that they got from the buyer (less whatever fees are going to the title company itself and other third parties involved).
One misconception, however, is that if you paid off part of your mortgage over time that you automatically "have equity." That's really only true if you find a buyer willing to pay a price greater than what's left on your mortgage. When housing prices decline, it's possible that you as the seller may need to bring a check to closing and do not get any money back. (They buyer is presumably bringing a bigger check, but you would need to make up the difference between what the buyer pays and what you still owe on your mortgage.)
If you sell your home and it has equity, meaning the price you sell at is higher than the mortgage remaining on the property, then the money the purchaser pays you for the propery goes to pay off the remaining mortgage and any other fees owing (including commissions), and any balance left over (equity) is what you receive from the sale.