Cheesecake will sink in the middle if it hasn't fully cooked/set in the middle. This can happen if the cheesecake hasn't cooked for long enough or if the cheesecake has baked at a high temperature which cooks and puffs up the outsides which means the edges are cooked before the centre so it sinks.