This is probably because you did not cook out the flour enough in the saucepan before adding the eggs to the choux pastry mix. Also, check that you added the correct amount of water, as steam is the rising agent in profiteroles, so they need moisture in the bake.