What is the impact of market microstructure on trading?

How do order types, bid-ask spreads, and liquidity affect trade execution?