WASHINGTON—NASA said Wednesday that contact has been restored with its $32.7 million spacecraft headed to the moon to test out a lopsided lunar orbit. Contact was lost after one successful communication and a second partial one on Monday, after the spacecraft left Earth’s orbit on its way to the moon, the space agency said. The…