A contract is a legally-binding agreement which recognises and governs the rights and duties of the parties to the agreement. A contract is legally enforceable because it meets the requirements and approval of the law.
An agreement typically involves the exchange of goods, services, money, or promises of any of those.