Chosen Solution

When I plug the hdmi port into my gtx 1070 it don’t work but when I plus in the display port it works fine how do I fix this

You’ll maybe have to open up the card to do this. Get a needle or similar and gently nudge each pin from the port connecting to the board. If any move they will need re soldered. Solder cracking is pretty common, especially in devices that get hot.

You prolly need to go in and update your drive for the hdmi port!!!