NFC has been integrated into every iPhone since the iPhone 7 and has been automatically activated since the iPhone XS. Apple is currently having problems with NFC on some new devices. Therefore sometimes enabling and disabling flight mode is necessary to reset NFC.
In stubborn cases, however, a restart of the device helps.
Open Control Center on iPhone or iPod touch or iPad and tap the Airplane Mode button. You can also turn on Airplane mode by going to Settings and tapping Airplane mode.
Image copyright Apple Inc.