This meaning means you give money because you owe it. For example, you pay for your food at a shop. It is the most common way to use 'pay'.
I pay my bills every month.
She pays the teacher for lessons.
Here, 'pay' is used to mean that someone is punished or harmed because of something they did. It is more about suffering, not money.
He pays for his mistakes now.
She will pay if she is late again.
In this use, 'pay' means to focus your mind or effort on something. It does not involve money but careful thought or listening.
You must pay attention in class.
Please pay close attention to the road.
This meaning shows 'pay' as a part or share someone gets from a larger amount. For example, it can be a part of money or goods from a group.
He received his pay of the profits.
They each took their pay from the prize.