What happens when you press the key? If no character at all appears, it's likely that your keyboard has suffered a hardware failure.
If you have a separate number pad on the keyboard, you can type the vertical pipe key by pressing and holding the ALT key and then using the number pad to press 0124: | (you can omit the leading zero). https://www.alt-codes.net/
If using ALT codes is too inconvenient, there are various methods you can use to remap your keyboard so that another key will produce the symbol you want. See, for example, https://www.groovypost.com/reviews/keytweak-windows-8-keyboard-remapper/