You aren't a failure. School gets so frustrating because it seems like the focus is always on grades, not on actually learning anything. Do you have to re-take it? I know at my school if you retake something, only the new grade counts towards your GPA. The old one is still on you transcript, but not in the GPA.
A 3.27 is definitely not a failure. So you had a bad term. That doesn't mean all is lost. I think schools focus too much on grades anyway. You'll do better next semester!