See the following Apple articles:
Remove a payment method from your Apple ID
Remove a payment method from your Apple ID - Apple Support
⤵️
If you can't remove a payment method
If you have subscriptions like iCloud+, have an unpaid balance, or you use purchase sharing, you must keep at least one payment method on file.
If your payment method is declined in the App Store or iTunes Store
If your payment method is declined in the App Store or iTunes Store - Apple Support
⤵️
How to complete your purchase if a payment failed or was declined
- On your iPhone or iPad, open the Settings app.
- Tap your name.
- Tap Payment & Shipping.
- Add a different payment method and remove the old one.
- Try to complete your purchase.
If you still can't make a purchase
Payment methods you can use with your Apple ID
Payment methods you can use with your Apple ID – Apple Support (UK)
fyi: Not all credit & debit cards seem to work with App Store / iTunes Store, try a different one, or preferably a credit card. If your card is not accepted as a paymenf method, you need to contact your bank.
If you still need help, get more help and assistant from Apple directly, see Contact Apple for support and service -> Contact Apple for support and service – Apple Support (UK)