Is do not disturb on? Look at your do not disturb setting and also your phone settings you should find the reason there if not your phone is possibly broken
Did you check your iPhone sim card by plugging it out and in again. And make sure that the Airplane Mode is not on. If checking these still fails to fix the issue, try an ios system recovery tool like TunesKit to fix calls keeps going to voicemail.