How to set pivot on an object?

How to set pivot on an object?

How can I set or change the pivot point on an object to control its rotation, scaling, or positioning more accurately