The oil pump is responsible for circulating oil throughout the engine. This oil lubricates the moving parts of the engine, preventing them from rubbing together and causing damage. If the oil pump is not working properly, the engine will not receive enough lubrication, which can cause the parts to overheat and start knocking.
Knocking is a sound that is caused by the metal parts of the engine hitting each other. It is a serious problem that can damage the engine and cause it to fail. If you hear knocking from your engine, you should stop driving it immediately and have it inspected by a qualified mechanic.