Issues while using ESP8266 with arduino due

I am trying to integrate arduino due with esp8266-01 and use AT commands. But unfortunately i can't see any results on Serial Monitor. Earlier, I was using UNO with esp8266 and everything was working fine. I have tried everything i found on internet, nothing helped. My esp8266 pin connections are:

VCC->3.3V
GND->GND
TX->RX3
RX->TX3
CH_PD->3.3V

This is the code I found on a tutorial which i have been trying to run just to test:

int LED=13;
void setup() {
  Serial3.begin(9600);
  delay(1000);
  pinMode(LED,OUTPUT);
  Serial.write("Hello");
}

void loop() {
  if (Serial3.available() > 0) {
    
    digitalWrite(LED,LOW);
    delay(100);
    digitalWrite(LED,HIGH);
  }
  if (Serial.available() > 0) {
     digitalWrite(LED,LOW);
    delay(2000);
    digitalWrite(LED,HIGH);
  }
  
}

One more thing, i am uploading code in Due's native mode. Could this be in anyway the cause of this?. Programming mode isnt working properly, Once the code is uploaded, If i try to re upload it gives the following error:

No device found on COM12
An error occurred while uploading the sketch

While the device is shown in tools section, i am still getting the above error.. I also tried to find fixes for this issue.. there were no definite ones.

Please help me out.. Thanks

Your code is a nonsense:

You are using Serial and Serial3, but you don't open Serial with Serial.begin(250000).

You don't read anything from Serial3

You don't read anything from Serial

What is the code running on the ESP8266 ?

Do this test:
Don't connect anything on the DUE, except the USB cable between your PC and the programming port (the one close to the jack), select Arduino DUE (programming port), select the correct COM port (COM x Programming port), upload the blink example. If this test fails, you may have a problem with the USB cable.

ard_newbie:
Do this test:
Don't connect anything on the DUE, except the USB cable between your PC and the programming port (the one close to the jack), select Arduino DUE (programming port), select the correct COM port (COM x Programming port), upload the blink example. If this test fails, you may have a problem with the USB cable.

The blink programs run correctly. It was the first thing i tired when i got the board.
Can you recommend something else?