So to summarize -- Palestinian militants have been firing rockets from Gaza into Israel after Israel pulled out of Gaza.
As a result, Israel put a blockade on goods that can be used for military purposes from entering Gaza from Israel
The border between egypt and Gaza has NOT been controlled by Israel until after october 7. It was controlled by Egypt. As far as i understand, Egypt also restricted movement of people and goods to Gaza.