Don't worry: everything keeps working for a grace period. Settings → Plan and billing shows the date by which to fix it.
Open Settings → Plan and billing.
Add a new card, or make another card the default.
The payment is tried again with the new card.
Even if it isn't fixed in time, nothing is deleted.