Do you have any pictures? For a Bed to work as a spawn point, it has to be in an enclosed space where enemies cannot spawn and the space immediately above the bed isn't obstructed. If you've removed (or actuated) any blocks, removed walls, or placed blocks directly above the bed, it probably...