Like Eric said, you would use "was." Also, people typically say "Is this sentence grammatically correct?" rather than "Is this sentence grammatical?". While both ways are correct, if you want to speak English in the U.S., people will be more familiar with the former. :)