htc desire 816g incoming call no ring problem

When I receive a phone call or a sms text message the phone will vibrate only, it won’t play any ringtone, but the sound/speakers work as I can play music and listen to videos, now when someone calls me on vider the phone will play the ringtone.
I have tried a full reset back to factory setting but this did not fix the problem,
Can anyone help me