There is a "Do Not Disturb" function on the Pixel two that turns off the sound of incoming calls. I think I accidentally turned mine on with the Active Edge squeeze function. Here are the directions for getting your sound back:
https://support.google.com/pixelphone/answer/6111295?hl=en
Good luck!