problems with spawn actor

hello, in my project I have a UI widget that when a specific actor is clicked, another UI appears, specifies, well.
in this one I have a button that projects to another object, to call a function, Create VCS, that’s what the function is called.
and well there is everything right. but when in that function it creates the character, in the preview the object created does nothing, this VCS is programmed for when you click on it to move and perform other actions.
but when it is created with the function spawn actor it has no functions or does anything, even try to make it be believed too high to see if its physics work and neither.
but if I create one from the editor by dragging it, it works.
Anyone know why and what I have to do to solve this? Thanks.