Mesh Painting Not Working

First make sure your mesh has vertex colors applied and imported into unreal.
So make very basic material that shows red for red vertex etc.

When you have such vertex material and vertex painted mesh working you may add your desired functionality.