An attribute is a field you add yourself. It holds a different value for each contact, such as where the lead came from or which plan they are on. You can also add attributes to deals and companies.
Open Settings > Attributes.

A variable is one value for your whole workspace, such as your support phone number, your booking link or a discount code. You set it once and use it in your emails, automations and messages. When you change it here, it changes everywhere.
Open Settings > Variables and select Add Variable.

In an email or a message, use the Insert field button to drop in an attribute or a variable. It is replaced by the real value when the message is sent.