All in all the sentence is weird, but for "it" (singular) you need "works"
For the rest of the sentence:
It might help with more context of what this is referencing and what it is referencing.
So for example, suppose I have an electronic device that operates on 120 voltage and I take it to Europe and plug it in directly to a 240 volt outlet.
When it breaks someone might say, "You cannot plug a 120 device into a 240 outlet" You might respond, "I don't know anything about voltages" Their response might be, "You did not know this nor how it works" where "this" is the statement about the voltage issue and it is the electronic device.
However, it is still clunky. This and it being effectively being two pronouns in the same sentence makes it hard to decipher which is what.
If I was to say:
"You did not know this computer"
"You did not know how this computer works"
Then I could say: "You did not know this computer or how it works" --I prefer nor and I think nor is proper in negated sentences - but or is understandable.