Samsung galaxy grand i9082 no mic no speaker no handsfree

My Samsung galaxy grand i9082 mic and speaker will
function sometimes but some other times it seizes.
When it stops, both the mic,speaker and loud speaker
on call even handsfree will not work. How do I solve
the problem.Ringer works.