Someone asked you to pay with a gift card
Two questions, then a clear answer with the reasons behind it.
Why scammers want gift cards
A gift card works like cash, but unlike a bank transfer it cannot be reversed and is close to impossible to trace. Once someone has the card number and the PIN from the back, the balance can be spent from anywhere in the world within minutes, and there is usually no way to recover it.
The story changes, the payment method does not
Gift cards turn up in nearly every kind of scam: fake tax debts, fake tech support, fake prize wins, fake emergencies from relatives, and romance scams. The reason you are given is chosen to fit whoever answers the phone. The gift card request is the part that never changes.
The one rule that catches all of them
No legitimate organisation asks to be paid in gift cards. Not the tax office, not the police, not a court, not a utility, not a technology company, not a bank, not an employer. If somebody contacted you unexpectedly and steered the conversation towards gift cards, that is your answer, whatever else they told you along the way.