If it's a new switch that works fine(have you tested this) ?, then assuming it's fitted correctly there is only one thing left, ie it's not being operated by the detent on the gearbox, but I've never heard of this.
Even though new can still be faulty so operate it by hand, by either pushing or releasing as appropriate.
tabetha