The separation in 1947 of British India into the Muslim state of Pakistan ( with West and East sections ) and largely Hindu India was never satisfactorily resolved , and India and Pakistan fought two wars - in 1947 - 48 and 1965 - over the disputed Kashmir territory .