After you resolve the case damage, replace both front and rear sprocket and chain. Then adjust the tension properly. Make certain the adjuster is restricted also. Could easily have been a case where the axle adjuster let loose, over stretched the chain, then SNAP!
Driveline components on bikes need regular looking after. Especially "new to you" bikes.