In my opinion, you are getting bad grades probably because you might not be completing class assignments. Also it may be due to the fact that you are not paying attention to you teacher in class or not studying often.
Who knows, there could be a hundred reasons. Talk to some people who know you--like your teachers. See if they have some ideas to help. Even if you all get it wrong for awhile, you will narrow down what the problem is. Good luck.