hello, sir. My samsung j5's headphone connection is not working. Can it be repaired?

Most things on a phone can be repaired or replaced. However if it is under warranty you should contact the manufacturer. If it isn't under warranty any longer, then you can try doing the work yourself, or take it to a local tech.