Your fax number: it is not deleted the moment the plan ends. When nothing covers it any more, it goes into a 30-day grace period. We notify you when the grace period starts and remind you as the deadline gets close, through your notification inbox and, if you have them on, push and email. The date in the notice is the one to go by.
While the number is in grace, faxes sent to it still arrive, but anything that needs an active plan, such as email-to-fax, is paused until the number is restored. Subscribe to a plan again before the grace period ends and the number is restored, as long as your plan covers it: a plan includes one number, and each extra number needs the Extra Fax Number add-on. If you do not, the number can be released, and a released number cannot be recovered.
One exception: if you have a premium number and only its Premium Fax Number add-on lapses while your plan continues, that number gets a shorter grace period of 7 days.
If a renewal payment fails, the 30 days start on the day we see the failed payment, not at your next billing date. We email you that day, and again as the date gets close, with the date the number is scheduled to be released and how to fix the payment: update your card in Credits & Billing for a plan bought on the web, or your payment method in your App Store or Google Play subscription settings for a plan bought there. Once the payment goes through, the number is restored.
Your credits: they stay with you. Credits you bought never expire, and the send credits your plan has already added to your balance stay there until you use them. What stops is the plan itself: it no longer adds send credits each period, and its monthly received-page allowance ends.