Why is my iPhone x switches its self off

my phone fell down and cracked but now it switches its off

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2942205:01crwdne2942205:0:

Please clarify what you mean by "switches off". Do you mean the screen goes blank, or the phone actually powers down? When it goes off, does it still vibrate when the silent switch is used, or does it ring when you call it? What happens when you plug it into the charger when it's off?

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0