Taxes are the responsibility of the owner. They will be pro rated based on the days you owned and the days the bank owned once foreclosure happens.
Bank can come after you after the foreclosure for any amount you still owe on the mortgage that is not covered by the property current value.
These are some pretty basics so you'd better get a lawyer if you are in need of advise on this pending foreclosure. There may be options for you.