Does buyer or seller pay for the survey in a sale and who pays for title insurance?
Title insurance: this would definitely be the buyer, since it is his or her title that is being insured. The seller is getting out of the property; he or she doesn't need title insurance.
Survey: if by this you mean an appraisal, such as is required for a mortgage or financing, that would be the buyer. Normally, there is no formal survey done in property sales; instead, the dimensions, boundaries, etc. are taken from the deed. If the buyer needs a survey for some reason (e.g. if it's a large lot, and the mortgage company wants a survey as well as an appraisal), the buyer would pay.
If the problem is that the buyer has some concern that the deed does not accurately show the dimensions, there's no clear rule as to who should pay--it's a matter of negotiation between the parties. Since the buyer might walk away from the sale in that case, if he or she doesn't trust the deed or any existing surveys, it probably behooves the seller to pay for it.