This is usually due to the bread being undercooked or containing excess water, making it harder for the gluten to do its job.   You can test that your bread has been adequately baked by using a food thermometer which should read 180-200F. If you suspect that the bread is gummy and dense from excess water, make sure to properly measure the water added to the dry ingredients or reduce the water.