They are both grammatical, and have a roughly similar meaning. The first is in the simple past tense, and refers to a situation of the past (i.e. definitely before the present moment) and without connection to the present (nothing is implied about what may be true now). More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.