Is there any such logic gate that accepts inputs from both sides and also stores information within the gate itself?
The logic that accepts and stores input is a "flip-flop". If you wish to store from either "side" you can have a 2:1 multiplexer that selects between the 2 inputs.