Federal loans are considered to be in default after nine months of missed payments. Once defaulted, the entire balance becomes due and the government can garnish wages, seize tax refunds, etc.
Federal loans CAN be discharged in bankruptcy, but you have to prove something called "undue hardship", which is much harder to demonstrate than standard consumer credit.
Private loans expire after six years of default, depending on the state.