A tailgate that won’t close or open is a worn latch. Replace it in about an hour.