Thanks for communicating with the cisco community, it is very important to verify that the port where the pc is connected has the correct vlan configuration and the layer 3 device has the help address of the DHCP Server configured, in some cases it does not count only remove the addresses on the server but also locate the layer three device and remove the ARP record on the device or Devices if it has HSRP or VRRP configurator.
Remember to rate this answer as help as this motivates you to continue contributing in the community