Step 1: Understanding the Question:
We need the Union Territory whose parts lie inside the borders of more than one state.
Step 2: Key Fact:
Puducherry is made of four separate enclaves. Puducherry and Karaikal are in or near Tamil Nadu, Mahe is in Kerala, and Yanam is in Andhra Pradesh.
Step 3: Check option 1.
Jammu and Kashmir is one compact block and is not spread across other states. So it is wrong.
Step 4: Check option 2 and option 3.
Andaman and Nicobar and Lakshadweep are island groups in the sea. They are not spread in other states. So both are wrong.
Step 5: Check option 4.
Puducherry is spread across Tamil Nadu, Kerala and Andhra Pradesh. So option 4 is correct.
Final Answer:
Puducherry has parts in several states. This is option 4.
\[ \boxed{\text{Option 4}} \]