Why is my van door broken?

Went to the grocery store everything was fine. When i came out the dash said a door was open when i opened my passanger door to make sure it was closed all the way the light shut off, then when i closed it again the light turned back on. Like I said it was literally fine one second and then doing it the next and now it is stuck backwards like that. What is wrong with it?

2003 ford windstar btw.

It is broken.

Check the switch somewhere in the door shut that is supposed to tell the car if the door is open or closed. Yours either needs a tiny adjustment or is faulty.