A transfer is when tokens are moved from one account to another. A transaction is the performance of an action on the blockchain. So, a transaction can be a transfer or it could also consist of multiple actions. For instance, a payment transaction that includes a transaction fee will include two transfers, one to the beneficiary and one to the company (or three transfers if at least part of the payment is using restricted airdrop tokens).