There are several ways to turn off your Nintendo Switch or put it into Sleep Mode, most of which involve the power button.
There might be a few reasons why your Nintendo Switch is not charging. First, make sure you're giving it enough time to charge and restart.