Taking ios12 as an example, the Apple 7 screen line is broken and can be repaired.
If you have a certain amount of hands-on ability and repair experience and certain equipment, you can also remove its shell, and then buy the corresponding line online to repair yourself. If you do not have that condition, you can also send to the maintenance department, so that professionals can help carry out maintenance.
No, you can't connect it. You have to buy a new one