Investment documents

What documentation helps create successful investments? What are, and how do you use such things as Term Sheets, Investment Agreements, Stock Purchase Agreements and Disclosure Documents? What do you actually need, and when?