Will someone please explain to me how staking works?

And how you determine if someone is trustworthy to stake or not?