Sometimes known as the Framework Agreement, the MSA is the agreement that frames the relationship. It has very general terms and will contain most of the ‘legalese’. This is often used in situations where it is contemplated that you will have an ongoing relationship.
You will generally see a MSA with new customers, often after a proposal is accepted by the customer. The MSA will be the initial step to get the relationship going before negotiating the Statement of Work.