Can I use 74HC14 or NPN transistor instead of MOSFET as level shifter
No, you can't. The "trick" of using MOSFETs in this type of level shifter relies on the fact that MOSFETs are very symmetrical devices &mdash; for all practical purposes, the source and drain terminals can be interchanged, and the device works identically (ignoring the effects of the body diode).

BJTs do not have this symmetry property. The base-emiiter and base-collector junctions are deliberately made with different properties, and while you'll get some gain using it in the reverse direction, it's much less than using it in the proper direction.

The 74HC14 has pins that are input only and output only, and can't be used for bidirectional signals at all.