Software Serial Working

Hello ,
I have connected gsm modem to pro mini and i have dialed a number from modem
the code which is working is as follows

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX

void setup()
{
  delay(10000);
  mySerial.begin(9600);
  Serial.begin(9600);
  Serial.println("ATD>1;");
  delay(5000);
}

void loop()
{
  
}

then i tried to do using a softwareSerial and creating a serial port but i couldn't get any result from it the code is following

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX

void setup()
{
  delay(10000);
  mySerial.begin(9600);
  Serial.begin(9600);
  mySerial.println("ATD>1;");
  delay(5000);
}

void loop()
{
  
}

i have used software serial in initial code because i want to add the modem to the extra serial port not the one which is default for testing purpose i used the initial code.

And i have also made connections to pin 10 and pin 11 of the mini from modem respt
what could be possibly wrong in this case

Did you connect the GSM modem to the Arduino as RX-TX, TX-RX rather than RX-RX, TX-TX?

Is 9600 the correct baud rate for your modem?

yes connected properly Rx to TX and TX to RX and yes the baud rate is correct

Drop the modem for now and see if your Software Serial is working. Connect the TX pin to RX pin. Then write a sketch to send data out the TX and receive it from the RX. Make sure you can transfer data reliably.