MacBook Pro crashes randomly after dropping it on the floor
You broke your MacBook, you need to take it for service.

The symptom that your Touch bar sometimes works (a.k.a. intermittently) means there is a bad/shorted connection somewhere.  Without physically examining it, it's impossible to tell what.  This is something for a professional to diagnose.