What is the ruling on someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.
Can someone who begins a voluntary fast break it?
It is preferable for someone who begins an act of worship not to break it.
Allah the Exalted has said {what means}: "and let not your [good] deeds come to nought!" [Muhammad/33].
However, if a person starts a voluntary fast (nafl) and needs to break it, they are going against what is preferable, but there is no sin upon them.
Can I start fasting based on the moon sighting of another country?
You must follow the moon sighting of the country you are in.
What is the ruling on someone who prays but does not fast, without a valid excuse?
Fasting is one of the pillars of Islam, and a Muslim's faith is incomplete if they neglect the obligation of fasting while being physically capable of observing it.