Hi Abhinandan,
for reference, you can take a look at this SW example:
c:\NXP\S32DS.3.4\S32DS\software\S32SDK_S32K1XX_RTM_4.0.2\examples\S32K118\driver_examples\system\crc_checksum\
Did you configure that pin as input? For example from the project mentioned above:

Did you call init function like this?
/* Initialize pins */
PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);
Regards,
Lukas