It needs to (1) get used to where it's living and (2) smell food in the water to open. There are many threads here about getting sun corals to open but the short version is to introduce smelly food (cyclopeeze, squid, etc.) to the water at the same time each day and the coral will soon learn to open about the time.
Good luck!