Fuel pump with control of fuel inlet to the pumping chamber