the flour could have too low a protein content, there could be too much salt in the bread recipe, you did not knead it or leave it to prove for long enough or you could have killed the yeast by leaving the dough to rise in a place that was too hot.