Your question is so general it can hardly receive a precise answer. Indicate your weak spots in grammar, take a grammar book and improve your knowledge using lots and lots of practice examples. And don't worry that much about mistakes - they're part of human nature. Everyone makes grammar mistakes in English from time to time. The thing you should try to do is minimize their number. Good luck!
