well, if the chip was secured and mass erase disabled (for example by accidental writing binary on bad address) - there is no way how to recover it. You need replace chip by new one.
As a last - you can try external debugger instead integrated OpenSDA (for example Segger J-link, PE Micro Multilink).
When I worked with the GPIO module of S32K144 EVB, I had to configure all of the pins of it. In these pins, which I did not use I set their register default value is ZERO. Do you think it is the reason for my issue?
Chip can be secured and mass erase disabled only by writing this option on address 0x400. There is no relation with GPIO stuff. What about external debugger? There is chance, that integrated OpenSDA is broken.