There are few possible reasons for the cake to remain uncooked in the middle.
1. If your cake looks done outside but remains uncooked/gooey in the center, it means that its not completely cooked. Always insert a skewer in the center of the cake towards the finishing time to see if it comes out clean. If it doesn't then cook for few minutes more.
2. The Oven temperature was too high. This cause the outside to cook much faster than the inside. Invest in a Oven thermometer to solve this problem.
3. The remote but a good chance is using a wrong recipe which has an imbalance of ingredients.