The charging port and headphone socket are not working on my htc m8 -
I have only used the htc charger and not damaged the port in any way.
Any ideas ?
Yes, they are. Take your phone to the store where you bought it or to a HTC authorized service center.