oven and broiler doesnt work but the stove top does. what is wrong?

Our oven and broiler stopped working but our stove top still works. When i turn them on i dont hear any gas flow nor is their any heat coming out. We thought it was the ignitor so we just replaced it but nothing has changed. Is the problem in the thermostat or did we install the ignitor incorrectly? Please help!