This is a problem with language learners all over the world. I see this in action every single day at work. I have many colleagues, some quite senior, who have exactly the same problem that you describe. They can write acceptable mails, even office memos or letters that don't need major correction, but can't speak a single sentence coherently in English. By the way this is not limited to English, it applies to any language learning situation.
Instead of answering your question directly, I would ask a question. From your profile I can expect that apart from English you also know Punjabi and Urdu. Do you have the same problem with these languages? Can you only write them but not speak? If not, why not?