Smartphone losing internet connection then shows SIM card error

Hi there,
I have HTC one Smartphone which is losing internet connection then indicates there is no SIM card inserted, I am forced to reboot the phone, then it will work for a while then repeats the same problem, I have checked the place I insert the SIM card and the card feels firm, what could be the problem? How do I solve this?
