If your pumpkin bread is not cooked through the middle then it may just need more time to bake. Look for the signs that is it done rather than sticking to a specific time. If it seems like it is taking too long too bake then it could be that your oven temperature is off, which is why I suggest using an oven thermometer to know the actual temperature you're baking at. If the temperature is way off you may need to calibrate your oven. It could also be that you didn't weigh the ingredients and used less accurate volume measurements. You could be adding too much or too little of something when using cup measurements instead of weighing ingredients.