If you can't pay, start thinking about where to live; you can't continue to live in the house without paying the mortgage. Assuming you have a place to go, you can talk to the bank about a "Deed in Lieu of Foreclosure," where you give the house back to the bank and walk away. This is better for your credit rating than allowing the bank to foreclose, so it won't affect you as much when you get back on your feet.
If you are unable to pay your home loan, then the bank will have to take coercive legal steps for recovery of the amount from you. The steps taken will depend on the contract or legal agreement between the two of you. However, you can hire a lawyer to help you on how you can go about extending your loan period.
Contact the bank and talk about ways to over come this. Don't stop paying. That will destroy your credit rating. Believe me it will haunt you for many years to come. It will even effect your job search success. people need to understand they need at least a year or more worth of money saved up to cover things like this.