You haven't provided much information so we are left to guess the circumstances. It might be broken or it might be something someone here has seen before.
Was the frunk open for an extended period of time? If I recall correctly, it times out at some point but should start working when you power up the truck. I'm a little fuzzy on how exactly this works, I just recall the button not working after leaving it open.