Question: I was adventuring, and reset my spawn by accident, by interacting with a bed in a random village. I never wrote down the coordinates or followed a compass so I’m completely lost.

I worked really hard, and since I’m on a Nintendo switch it’s confusing with what everyone’s saying? How do I get back home? Is there any commands I can use? I even by accident changed the world spawn to a village?

Answer: 
If you did it in Survival, you could make a copy of the world, find where you had as the spawn/your base, and write down the coordinates (using creative to find the base)
`/tp @p 0 ~ 0`
This command will tp you to the world spawn. This should help you then navigate to your base, assuming your base is near the world spawn. And unless your base is underground it should help to make a bunch of maps and explore the area around spawn and look for any unusual blobs of color shaped like your base which should be, ta-da, your base.

If you don't want to use commands you can craft a compass to find world spawn instead. And I still recommend using maps to cover more area as you navigate back and around spawn.