Pakistan has about 200 million people, nearly all Muslim. India has about 1.25 billion people, 14.2% Muslim. So Pakistan now has more Muslims. Perhaps in the past there were more in India.
Possibly; when Pakistan separated it certainly had more Muslims because Bangladesh was part of it (East Pakistan).