There is no difference—it's the same word. Sonata (Italian sonare, "to sound") is a musical form/structure for solo instrument or small ensemble, typically in 3–4 movements (fast–slow–fast/minuet–fast).
If you meant Sonata vs. Sonatina: Sonatina = shorter, lighter, simpler sonata (teaching pieces).
If Sonata vs. Symphony: Symphony = sonata for orchestra (4 movements, larger forces).
If Sonata vs. Concerto: Concerto = soloist vs. orchestra (3 movements).
Clarify the intended comparison.