What happens if bonds borrower defaults

What happens if bond payment or interest payment is defaulted by entity raising money.
Do we have chance of ever getting the money back or is it gone case.
Is there any provision to ensure that we get at least our invested amount.