This Samsung Tablet was first released in May 2015 and can be identified by its 9.7 inch diagonal screen. The model number of the device is “SM - T550.”
You'll have to open it up and see if the micro switch has either came off the board or the solder joints have cracked. You'll need a multimeter to test the switch for continuity.