What should we do when we have a great hand?
Do we pretend that we do not hit any cards to get chips from opponents, or should we bet high so as not to risk losing the hand without pulling anything?
I agree with previous answer and add few things to the mix. It depends on so many things that it's hard to give just one simple answer.
Do you already have the absolute nuts or is there a possibility that someone might be drawing something bigger? Is there a flush draw at the table when you have a set for example etc.? In some situations you don't want to give your opponent a free card so you need to bet right away but in some situations you might be hoping that your opponent would complete their draws and give them a chance to do so by slow playing your own hand. It really depends on what you have and what your opponent might be having.
Who was the original raiser? If your opponent was the one who raised first, maybe you should give them a chance to cbet by checking. Then it's up to you if you just call or reraise right away. Even better if your opponent shows aggression even after your calls and you hold the nuts or at least close to it. Let them hang themselves.
What kind of board compared to your own hand? What type of opponents? What is your own table image? etc. Like I mentioned, it depends on so many things that I can't go through all of those situations
The best thing to do is just to play, gather experience and figure out the best play in every situation on its own.