"How can I use correct grammar when I am talking in English?"
Well, how do native speakers and advanced learners manage it so well? Practice. Practice the right sentences and phrases until it becomes habit.
If you're thinking too much about grammar, then you'll probably confuse yourself. Just pay attention, read and listen for good examples, and remember to get feedback.