If you can’t enter a code because you’ve lost your device, you can use Find Devices to locate it or Manage Devices to remove your Apple Pay cards from it.
Find Devices
Manage Devices