You can use a USB cable or just your Google account to connect a Google Pixel phone to your computer. Here's how to do both, on either a Mac or PC.
Taking a screenshot on a working Google Pixel is simple, but there are alternate ways to take one if your phone is damaged.