This is my understanding, from AmE:
state school: Usually refers to a public (state funded) University. I went to one, UCSB, and since I'm from California, I pay about 1/3 of the total cost (Sacramento pays the rest, along with some federal funding)
elementary school: Grades K-5 or 6 (sometimes...