hello ofek.reches,
are you using 40-pin expansion header? please check NVIDIA Jetson Nano J41 Header Pinout - JetsonHacks for the pin connections.
you may also configure the pin to change the usage as SFIO,
please check this similar topic for using PWM on Nano, Topic 178959.
thanks