I suppose that's the natural consequence of a game, designed with a tutorial in mind, scrapping said tutorial.
Pressing Space or E to interact either: Deposits stored gears if you have them, or turns the machine on/off. So after picking up the gear and depositing it, you should have pressed E again to turn on the other door.
I'm sorry for the confusion. Thanks for giving it a try though.