Punjab Kings registered a five-run win over Sunrisers Hyderabad and kept their hopes alive for the play-offs.