Sun and son

How to differentiate if the pronunciation is almost identical? By context?