Mortgaged property damage do you need to replace to get money?

our garage burned down and it was insured for 19,000. If we only replace it with a shed, do we get the balance?