The princely state of Jammu and Kashmir was comprised of Jammu region, Kashmir Valley, Ladakh, Gilgit, Baltistan and a bit of Aksai Chin.[1] So, India have Jammu, Ladakh and a part of Kashmir. Pakistan have POK (Azad Kashmir + Gilgit-Baltistan). And, China have Aksai Chin.
You are right upto 1948, when we fought for our independence to get rid-off Dogra Raj, and became independent and affiliated with Pakistan. So Pakistan did not occupy us. Each side (both India and Pakistan) narrate this story for her benefit :)
[1] https://en.wikipedia.org/wiki/Jammu_and_Kashmir_(princely_st...