Hey man, I believe in you. If there's a part of you that cares for your grade, you go out and slap those grades up to where they belong.
Losing motivation sucks, man. Perhaps setting short-term goals and writing down what you want to tackle for the day might help. It does for me, to some extent.