Using sprintf and nextion display

No, the pins for each serial port are fixed, you do not need to and cannot define them. To use serial port 2 you would put "Serial2.begin(115200);" (or a baud rate of your choice) in setup() and use Serial2.print() as you suggested.