Not really familiar with Lenze drives, but according to the Type number this model has optional modbus control. You should check parameter C01 , to see if it's really in local terminal control mode ( should be set to 1 according to manual
https://www.nexinstrument.com/assets/images/pdf/Manual-SMD-V20-0-GB-2016_12.pdf ).
Could also be electrical problem, maybe the input bridge fried. Happens when running inverters that have been stored for too long ( caps have to be reformed ). You should check connections B+ B- to see if there is a constant DC bus voltage.
During run , check these parameters for any abnormalities.
C50 Output frequency 0.0 {Hz}
C53 DC bus voltage 0.0 {%}
C54 Motor current 0.0 {%}