Ravi,
I have few questions,
Are you working with a Realtor or No Realtor?
Are you buying from listing or FSBO?
If you don't have a Realtor, that makes things bit hard. You have to do everything. As Dawn explained the steps, they are straight forward but Realtor will help take care most of it. Since you are a buyer, you get a realtor free as they are paid by sellers. The problem is the contract should cover all the items like what if you find a problem after inspection, when to close and so much more..
1. Have a contract which covers all your basis including earnest money deposit, title company you are going to work with, survey information, inspection, termination, option period etc.,
2. Do the inspection and go back if needs renegotiation if there is a problem with the house.
3. Close the house if there is no issue with the title. If they found issue with the title, ask seller to rectify and close it
Hope this helps.
Vijai