There are many reasons that this can happen - the most common is underbaking the cake. When the cake isn't fully baked, the cake will collapse onto itself. Be sure to stick a toothpick into the center of the cake to make sure it comes out clean. Another reason for a sinking cake could be expired baking powder. Be sure to check your ingredients prior to baking!