Try these steps:
Make sure there isn’t any dust or lint in the power port.
Using the original power adapter and USB cable, plug your Nexus device into a functioning power outlet. Nexus phones and tablets have specific power requirements, and the USB cable and power adapter that are included...