The modal verbs should and ought to express weaker obligation or advice. They are always followed by the infinitive.
They differ in usage despite both having similar meanings.
Should is used more often and is less formal.
Ought to is very uncommon in everyday use, especially in its negative and interrogative form, and is generally more formal.