The dough was too dry. Weigh the flour when adding it to the dough if at all possible. Most people add too much flour when they use measuring cups. Another reason for crumbly bread is poor shaping. Shaping structures the gluten so it looks better and holds the crumb together. The latter is especially important with sandwich bread.