The example says it was tested, successfully, on an Uno so should work on a Nano.
Do you get anything on get serial monitor?
Are you sure of your wiring? Module RX to pin 6, module TX to pin 7?
Can you post a clear photo showing the wiring? How to post an image.