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: 
There are a few ways you may be able to get back home.

The simplest is to craft a compass which will point you to the world spawn. It's unclear from your post whether you used commands to change the spawn point to a village, or used a bed, but assuming you just used a bed then the compass would point you towards 0,0 which may be enough to help you navigate home once you reach the center of the map.

If you're willing to use commands then I'd recommend temporarily setting your game mode to creative and fly around until you're able to locate your base. In creative mode you'll be faster and able to fly over obstacles. You'll be able to find and identify landmarks more easily from a great altitude.
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)