there are a variety of reasons why yours may be sinking on cooling but it is most likely that it isn't quite fully baked. banana bread tends to form a firmish crust on the outside, so even if it looks baked it may not quite be done which means that it will sink as it cools.