Serial.println() was not printing on serial monitor

The first thing to do is to isolate the problem with Serial.print.

Does this work ?

void setup()
{
  // put your setup code here, to run once:
  Serial.begin(115200);
  delay(1000);
  Serial.println("setup()");
}

void loop()
{
  Serial.println("loop()");
  delay( 1000) ;
}