For a contract to be legally binding, both parties must exchange something that has value, such as goods and services, money, or promises. The contract must also contain all relevant information necessary to understand and enforce its terms, such as names and contact information for both parties and details regarding the agreement.