Reflux involves heating a reaction mixture with a condenser placed vertically above the flask. This allows the reaction to be heated for a long period without losing volatile substances, as they condense and drip back down. It's used to ensure a reaction goes to completion. Distillation is a separation technique. It's used either to purify a final liquid product or, crucially in synthesis, to remove a product as it forms if it's more volatile than the reactants (e.g., making an aldehyde from a primary alcohol).