Machinery for filling or closing bottles, cans or other containers