Thanks everyone for your responses. The problem is resolved.
Before I replaced the neutral safety switch I tested all of the safety switches including the seat switch. I unplugged it and tested with ohm meter and it was good so I plugged it back but I didn’t get the plug totally connected and...