In der Schule is the answer to the question where you actually are.
Wo bist Du gerade? In der Schule.
In die Schule is the answer to the question where you are headed.
Wohin gehst Du jetzt? In die Schule.
Please note that this mostly implies that you are also actually either enrolled there or work there.
Zur Schule is a bit ambiguous. It can either also answer the question where someone is currently headed.
Wohin gehst Du jetzt? Zur Schule.
Please note that this does not necessarily mean your are a student/teacher/otherwise employed there. It can mean that you are generally headed to the school as a meeting point.
But it can also be the general answer about your current "employment status".
Was machst Du? Arbeitest Du? Nein, ich gehe noch zur Schule.
As for the others:
Ich gehe in die Schule
Is correct. It means that you're on your way to school and class.
Ich gehe in der Schule
Is not as typical as the other sentences. It means that you are walking inside the school building (as opposed to running). It may also be a valid answer:
Musst Du noch auf's Klo? Nein, ich gehe in der Schule (aufs Klo)
That's actually a common use.
Ich gehe zur Schule
Correct, explained above.
Ich bin in die Schule
Almost never correct. Could be a very colloquial answer to a question, like
Was hast Du nach dem Frühstück gemacht? Ich bin in die Schule (gegangen).
Usually you'd expect a verb.
Ich bin in der Schule
Correct, see above.
Ich bin zur Schule
Like Ich bin in die Schule, used in the same contexts, but not correct when used by itself.