maurya gives a good description. Of course you also need to make sure the person doing escrow is trustworthy.
Localbitcoins has in built escrow system, which means the btc the person is selling is put aside for you. I would recommend localbitcoins above all else, just pick someone with some good history and you should be fine.