ESP32 and NEO-6M

Try running this short program, it should copy the characters the GPS is putting out to the serial monitor, post the output for the forum to see.

#define RXD2 16
#define TXD2 17

void loop()
{
  while (Serial2.available())
  {
    Serial.write(Serial2.read());
  }
}


void setup()
{
  Serial2.begin(9600, SERIAL_8N1, RXD2, TXD2);
  Serial.begin(115200);
  Serial.println();
  Serial.println("GPS_Echo_Hardware_Serial2 Starting");
}